	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_hw_param_near
_snd_pcm_hw_param_near:                 ## @snd_pcm_hw_param_near
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movl	(%r13), %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	movl	%ecx, -56(%rbp)
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:
	movl	$0, -48(%rbp)
	jmp	LBB0_4
LBB0_1:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	movl	$0, -56(%rbp)
LBB0_6:
	movl	$-1, -48(%rbp)
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	movl	%ebx, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movl	%eax, (%r12)
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r14, %r13
	movq	%r15, %r14
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_snd_pcm_hw_param_min
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r14, %r15
	movq	%r13, %r14
	js	LBB0_22
## %bb.12:
	movl	%eax, %ecx
	cmpl	%ebx, %eax
	jne	LBB0_14
## %bb.13:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -56(%rbp)
	je	LBB0_22
LBB0_14:
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%rax, %r13
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_snd_pcm_hw_param_max
	testl	%eax, %eax
	js	LBB0_21
## %bb.16:
	movl	-48(%rbp), %esi
	movl	-56(%rbp), %r9d
	movl	%eax, %edi
	movl	%ebx, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_boundary_nearer
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movl	(%r13), %eax
	movl	%eax, (%r15)
	movq	%r13, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %r13
	movq	%r15, %r14
	jmp	LBB0_20
LBB0_5:
	je	LBB0_6
## %bb.7:
	movl	$1, -48(%rbp)
	leal	-1(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_19:
	movl	(%r12), %eax
	movl	%eax, (%r14)
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_snd_pcm_hw_param_max
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	movl	%r15d, %edx
	js	LBB0_24
LBB0_20:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_snd_pcm_hw_param_last
	jmp	LBB0_23
LBB0_18:
	movq	%r12, %rdi
	callq	_kfree
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_21:
	movq	%r13, %rdi
	callq	_kfree
LBB0_22:
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_snd_pcm_hw_param_first
LBB0_23:
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_snd_BUG_ON
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_snd_pcm_hw_param_near
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_hw_param_near
_snd_pcm_hw_param_near:                 ; @snd_pcm_hw_param_near
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
	cbz	x4, LBB0_3
; %bb.1:
	ldr	w24, [x19]
	ldr	w8, [x8]
	cmp	w8, w3
	csel	w23, w8, w3, lo
	str	w24, [sp, #12]
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.2:
	str	wzr, [sp, #8]
	mov	x26, x23
	b	LBB0_7
LBB0_3:
	ldr	w8, [x8]
	cmp	w8, w3
	csel	w23, w8, w3, lo
	str	wzr, [sp, #12]
LBB0_4:
	mov	w24, #0
	mov	w8, #-1
	str	w8, [sp, #8]
	mov	x26, x23
	b	LBB0_7
LBB0_5:
	cbz	w24, LBB0_4
; %bb.6:
	mov	w8, #1
	str	w8, [sp, #8]
	sub	w26, w23, #1
LBB0_7:
Lloh2:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_18
; %bb.8:
	mov	x25, x0
	ldr	w8, [x21]
	str	w8, [x0]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_snd_pcm_hw_param_min
	tbnz	w0, #31, LBB0_15
; %bb.9:
	tbnz	w26, #31, LBB0_20
; %bb.10:
	mov	x27, x0
	ldr	w8, [sp, #12]
	cmp	w0, w23
	ccmp	w8, w24, #0, eq
	b.eq	LBB0_20
; %bb.11:
	ldr	w1, [x28]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_17
; %bb.12:
	mov	x28, x0
	ldr	w8, [x25]
	str	w8, [x0]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x28
	mov	x2, x20
	mov	x3, x26
	bl	_snd_pcm_hw_param_max
	tbnz	w0, #31, LBB0_19
; %bb.13:
	ldp	w1, w5, [sp, #8]
	mov	x2, x23
	mov	x3, x24
	mov	x4, x27
	bl	_boundary_nearer
	cbz	x0, LBB0_19
; %bb.14:
	ldr	w8, [x28]
	str	w8, [x21]
	mov	x0, x28
	bl	_kfree
	mov	x0, x25
	bl	_kfree
	b	LBB0_16
LBB0_15:
	ldr	w8, [x25]
	str	w8, [x21]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x26
	bl	_snd_pcm_hw_param_max
	mov	x23, x0
	mov	x0, x25
	bl	_kfree
	tbnz	w23, #31, LBB0_22
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_snd_pcm_hw_param_last
	b	LBB0_21
LBB0_17:
	mov	x0, x25
	bl	_kfree
LBB0_18:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_19:
	mov	x0, x28
	bl	_kfree
LBB0_20:
	mov	x0, x25
	bl	_kfree
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_snd_pcm_hw_param_first
LBB0_21:
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_snd_BUG_ON
LBB0_22:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_snd_pcm_hw_param_near
.subsections_via_symbols
