	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9705_phy_init
_wm9705_phy_init:                       ## @wm9705_phy_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_WM97XX_RPR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_AC97_AUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_wm97xx_reg_write
	movq	_AC97_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_wm97xx_reg_write
	movq	_pil@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.3:
	movq	_WM9705_PIL@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	(%r15), %edi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, (%rbx)
	jne	LBB0_6
LBB0_5:
	movq	_pressure@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	movq	_delay@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	$16, %edi
	jb	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$4, (%rbx)
	movl	$4, %edi
LBB0_8:
	callq	_WM97XX_DELAY
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_delay_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_pdd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$15, %eax
	orl	%eax, %r12d
	movl	(%r15), %edi
	movl	$1, %edx
	subl	%eax, %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$4, %ebx
	andl	$48, %ebx
	orl	%r12d, %ebx
	movq	_AC97_WM97XX_DIGITISER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wm97xx_reg_write
	movq	_AC97_WM97XX_DIGITISER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm97xx_reg_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM97XX_RPR,4,2                 ## @WM97XX_RPR
	.comm	_AC97_AUX,4,2                   ## @AC97_AUX
	.comm	_AC97_VIDEO,4,2                 ## @AC97_VIDEO
	.comm	_pil,4,2                        ## @pil
	.comm	_WM9705_PIL,4,2                 ## @WM9705_PIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting pressure measurement current to 400uA."

L_.str.1:                               ## @.str.1
	.asciz	"setting pressure measurement current to 200uA."

	.comm	_pressure,8,3                   ## @pressure
	.comm	_delay,4,2                      ## @delay
L_.str.2:                               ## @.str.2
	.asciz	"supplied delay out of range."

L_.str.3:                               ## @.str.3
	.asciz	"setting adc sample delay to %d u Secs."

	.comm	_delay_table,8,3                ## @delay_table
	.comm	_pdd,4,2                        ## @pdd
L_.str.4:                               ## @.str.4
	.asciz	"setting pdd to Vmid/%d"

	.comm	_mask,4,2                       ## @mask
	.comm	_AC97_WM97XX_DIGITISER1,4,2     ## @AC97_WM97XX_DIGITISER1
	.comm	_AC97_WM97XX_DIGITISER2,4,2     ## @AC97_WM97XX_DIGITISER2
	.no_dead_strip	_wm9705_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm9705_phy_init
_wm9705_phy_init:                       ; @wm9705_phy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _WM97XX_RPR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM97XX_RPR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _AC97_AUX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97_AUX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #32768
	bl	_wm97xx_reg_write
Lloh6:
	adrp	x8, _AC97_VIDEO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC97_VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32768
	bl	_wm97xx_reg_write
Lloh9:
	adrp	x20, _pil@GOTPAGE
Lloh10:
	ldr	x20, [x20, _pil@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _WM9705_PIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM9705_PIL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w21, w8, w21
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x19]
	bl	_dev_dbg
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _pressure@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pressure@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
LBB0_6:
Lloh21:
	adrp	x22, _delay@GOTPAGE
Lloh22:
	ldr	x22, [x22, _delay@GOTPAGEOFF]
	ldr	w0, [x22]
	cmp	w0, #16
	b.lo	LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w0, #4
	str	w0, [x22]
LBB0_8:
	bl	_WM97XX_DELAY
	mov	x20, x0
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _delay_table@GOTPAGE
Lloh26:
	ldr	x8, [x8, _delay_table@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
Lloh30:
	adrp	x8, _pdd@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pdd@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w8, w8, #0xf
	orr	w21, w8, w21
	ldr	w0, [x19]
	mov	w9, #1
	sub	w8, w9, w8
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
Lloh35:
	adrp	x8, _mask@GOTPAGE
Lloh36:
	ldr	x8, [x8, _mask@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ubfiz	w8, w8, #4, #2
	orr	w21, w21, w8
Lloh38:
	adrp	x8, _AC97_WM97XX_DIGITISER1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AC97_WM97XX_DIGITISER1@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_wm97xx_reg_write
Lloh41:
	adrp	x8, _AC97_WM97XX_DIGITISER2@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AC97_WM97XX_DIGITISER2@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_wm97xx_reg_write
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WM97XX_RPR,4,2                 ; @WM97XX_RPR
	.comm	_AC97_AUX,4,2                   ; @AC97_AUX
	.comm	_AC97_VIDEO,4,2                 ; @AC97_VIDEO
	.comm	_pil,4,2                        ; @pil
	.comm	_WM9705_PIL,4,2                 ; @WM9705_PIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting pressure measurement current to 400uA."

l_.str.1:                               ; @.str.1
	.asciz	"setting pressure measurement current to 200uA."

	.comm	_pressure,8,3                   ; @pressure
	.comm	_delay,4,2                      ; @delay
l_.str.2:                               ; @.str.2
	.asciz	"supplied delay out of range."

l_.str.3:                               ; @.str.3
	.asciz	"setting adc sample delay to %d u Secs."

	.comm	_delay_table,8,3                ; @delay_table
	.comm	_pdd,4,2                        ; @pdd
l_.str.4:                               ; @.str.4
	.asciz	"setting pdd to Vmid/%d"

	.comm	_mask,4,2                       ; @mask
	.comm	_AC97_WM97XX_DIGITISER1,4,2     ; @AC97_WM97XX_DIGITISER1
	.comm	_AC97_WM97XX_DIGITISER2,4,2     ; @AC97_WM97XX_DIGITISER2
	.no_dead_strip	_wm9705_phy_init
.subsections_via_symbols
