	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak4104_hw_params
_ak4104_hw_params:                      ## @ak4104_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_IEC958_AES0_CON_NOT_COPYRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_AK4104_REG_CHN_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_ak4104_spi_write
	movq	%r15, %rdi
	callq	_params_rate
	cmpl	$32000, %eax                    ## imm = 0x7D00
	je	LBB0_6
## %bb.1:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_2
## %bb.3:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	jne	LBB0_5
## %bb.4:
	movq	_IEC958_AES3_CON_FS_48000@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_IEC958_AES3_CON_FS_32000@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_IEC958_AES3_CON_FS_44100@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
	movl	$3, %edi
	callq	_AK4104_REG_CHN_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ak4104_spi_write               ## TAILCALL
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEC958_AES0_CON_NOT_COPYRIGHT,4,2 ## @IEC958_AES0_CON_NOT_COPYRIGHT
	.comm	_IEC958_AES3_CON_FS_44100,4,2   ## @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,4,2   ## @IEC958_AES3_CON_FS_48000
	.comm	_IEC958_AES3_CON_FS_32000,4,2   ## @IEC958_AES3_CON_FS_32000
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported sampling rate\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ak4104_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak4104_hw_params
_ak4104_hw_params:                      ; @ak4104_hw_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _IEC958_AES0_CON_NOT_COPYRIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEC958_AES0_CON_NOT_COPYRIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #0
	bl	_AK4104_REG_CHN_STATUS
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_ak4104_spi_write
	mov	x0, x20
	bl	_params_rate
	mov	w8, #32000
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #44100
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #48000
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _IEC958_AES3_CON_FS_48000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEC958_AES3_CON_FS_48000@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _IEC958_AES3_CON_FS_32000@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEC958_AES3_CON_FS_32000@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _IEC958_AES3_CON_FS_44100@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEC958_AES3_CON_FS_44100@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
	mov	w0, #3
	bl	_AK4104_REG_CHN_STATUS
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ak4104_spi_write
LBB0_7:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IEC958_AES0_CON_NOT_COPYRIGHT,4,2 ; @IEC958_AES0_CON_NOT_COPYRIGHT
	.comm	_IEC958_AES3_CON_FS_44100,4,2   ; @IEC958_AES3_CON_FS_44100
	.comm	_IEC958_AES3_CON_FS_48000,4,2   ; @IEC958_AES3_CON_FS_48000
	.comm	_IEC958_AES3_CON_FS_32000,4,2   ; @IEC958_AES3_CON_FS_32000
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported sampling rate\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ak4104_hw_params
.subsections_via_symbols
