	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_pcm_hw_params
_snd_atiixp_pcm_hw_params:              ## @snd_atiixp_pcm_hw_params
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	8(%rax), %r13
	movq	%r14, %rdi
	callq	_params_buffer_bytes
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_snd_pcm_lib_malloc_pages
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%r14, %rdi
	callq	_params_buffer_bytes
	movl	%eax, (%r13)
	movq	%r14, %rdi
	callq	_params_periods
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_params_period_bytes
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_atiixp_build_dma_packets
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_NUM_ATI_CODECS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%edx, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movl	(%rcx,%r13,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AC97_LINE1_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_params_rate
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_snd_ac97_write
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %edi
	movq	_AC97_LINE1_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_snd_ac97_write
	movq	_NUM_ATI_CODECS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_ATI_CODECS,4,2             ## @NUM_ATI_CODECS
	.comm	_AC97_LINE1_RATE,4,2            ## @AC97_LINE1_RATE
	.comm	_AC97_LINE1_LEVEL,4,2           ## @AC97_LINE1_LEVEL
	.no_dead_strip	_snd_atiixp_pcm_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_atiixp_pcm_hw_params
_snd_atiixp_pcm_hw_params:              ; @snd_atiixp_pcm_hw_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x23, [x8, #8]
	mov	x0, x19
	bl	_params_buffer_bytes
	mov	x1, x0
	mov	x0, x22
	bl	_snd_pcm_lib_malloc_pages
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x23, #4]
	mov	x0, x19
	bl	_params_buffer_bytes
	str	w0, [x23]
	mov	x0, x19
	bl	_params_periods
	mov	x21, x0
	mov	x0, x19
	bl	_params_period_bytes
	mov	x4, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_atiixp_build_dma_packets
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh0:
	adrp	x24, _NUM_ATI_CODECS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUM_ATI_CODECS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x25, #0
Lloh2:
	adrp	x26, _AC97_LINE1_RATE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AC97_LINE1_RATE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _AC97_LINE1_LEVEL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _AC97_LINE1_LEVEL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	w22, [x9, x25, lsl #2]
	cbz	w22, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x26]
	mov	x0, x19
	bl	_params_rate
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_snd_ac97_write
	ldr	x8, [x20]
	ldr	w0, [x8, x25, lsl #2]
	ldr	w1, [x27]
	mov	w2, #0
	bl	_snd_ac97_write
	ldr	w8, [x24]
	b	LBB0_4
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_ATI_CODECS,4,2             ; @NUM_ATI_CODECS
	.comm	_AC97_LINE1_RATE,4,2            ; @AC97_LINE1_RATE
	.comm	_AC97_LINE1_LEVEL,4,2           ; @AC97_LINE1_LEVEL
	.no_dead_strip	_snd_atiixp_pcm_hw_params
.subsections_via_symbols
