	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9713_phy_init
_wm9713_phy_init:                       ## @wm9713_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	%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	%rdi, %r13
	movl	$4, %edi
	callq	_WM97XX_DELAY
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$5, %edi
	callq	_WM97XX_SLT
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_WM9712_RPU
	movl	%eax, %r12d
	movq	_rpu@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	andl	$65472, %r12d                   ## imm = 0xFFC0
	callq	_WM9712_RPU
	orl	%eax, %r12d
	movl	4(%r13), %edi
	movl	$64000, %eax                    ## imm = 0xFA00
	xorl	%edx, %edx
	idivl	(%rbx)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_2:
	movq	_five_wire@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_WM9713_45W@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	4(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	_pil@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.4:
	movl	4(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movl	$0, (%rbx)
	jmp	LBB0_10
LBB0_5:
	movq	_pil@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.8:
	movq	_WM9712_PIL@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
LBB0_9:
	movl	4(%r13), %edi
	xorl	%eax, %eax
	callq	_dev_info
	cmpl	$0, (%rbx)
	jne	LBB0_11
LBB0_10:
	movq	_pressure@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_11:
	movq	_delay@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	$16, %edi
	jb	LBB0_13
## %bb.12:
	movl	4(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	$4, (%rbx)
	movl	4(%r13), %edi
	movq	_delay_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%rbx), %edi
LBB0_13:
	callq	_WM97XX_DELAY
	movl	%eax, %r14d
	movq	_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$4, %ebx
	andl	$48, %ebx
	orl	%r12d, %ebx
	movq	_coord@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %eax
	je	LBB0_15
## %bb.14:
	movq	_WM9713_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	orl	%eax, %ebx
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	andl	$65295, %r15d                   ## imm = 0xFF0F
	orl	%r15d, %r14d
	movq	%r13, %rdi
	movl	$90, %esi
	callq	_wm97xx_reg_read
	movl	%eax, (%r13)
	movq	_AC97_WM9713_DIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_wm97xx_reg_write
	movq	_AC97_WM9713_DIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_wm97xx_reg_write
	movq	_AC97_WM9713_DIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_wm97xx_reg_write
	movq	_AC97_GPIO_STICKY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm97xx_reg_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rpu,4,2                        ## @rpu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting pen detect pull-up to %d Ohms\n"

	.comm	_five_wire,8,3                  ## @five_wire
	.comm	_WM9713_45W,4,2                 ## @WM9713_45W
L_.str.1:                               ## @.str.1
	.asciz	"setting 5-wire touchscreen mode."

	.comm	_pil,4,2                        ## @pil
L_.str.2:                               ## @.str.2
	.asciz	"Pressure measurement not supported in 5 wire mode, disabling\n"

	.comm	_WM9712_PIL,4,2                 ## @WM9712_PIL
L_.str.3:                               ## @.str.3
	.asciz	"setting pressure measurement current to 400uA."

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

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

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

	.comm	_delay_table,8,3                ## @delay_table
	.comm	_mask,4,2                       ## @mask
	.comm	_coord,8,3                      ## @coord
	.comm	_WM9713_WAIT,4,2                ## @WM9713_WAIT
	.comm	_AC97_WM9713_DIG1,4,2           ## @AC97_WM9713_DIG1
	.comm	_AC97_WM9713_DIG2,4,2           ## @AC97_WM9713_DIG2
	.comm	_AC97_WM9713_DIG3,4,2           ## @AC97_WM9713_DIG3
	.comm	_AC97_GPIO_STICKY,4,2           ## @AC97_GPIO_STICKY
	.no_dead_strip	_wm9713_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm9713_phy_init
_wm9713_phy_init:                       ; @wm9713_phy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	w0, #4
	bl	_WM97XX_DELAY
	mov	x20, x0
	mov	w0, #5
	bl	_WM97XX_SLT
	mov	x21, x0
	mov	w0, #1
	bl	_WM9712_RPU
	mov	x22, x0
Lloh0:
	adrp	x23, _rpu@GOTPAGE
Lloh1:
	ldr	x23, [x23, _rpu@GOTPAGEOFF]
	ldr	w0, [x23]
	cbz	w0, LBB0_2
; %bb.1:
	and	w22, w22, #0xffc0
	bl	_WM9712_RPU
	orr	w22, w0, w22
	ldr	w0, [x19, #4]
	ldr	w8, [x23]
	mov	w9, #64000
	sdiv	w8, w9, w8
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_2:
Lloh4:
	adrp	x8, _five_wire@GOTPAGE
Lloh5:
	ldr	x8, [x8, _five_wire@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _WM9713_45W@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM9713_45W@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh12:
	adrp	x23, _pil@GOTPAGE
Lloh13:
	ldr	x23, [x23, _pil@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_10
; %bb.4:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	str	wzr, [x23]
	b	LBB0_10
LBB0_5:
Lloh16:
	adrp	x23, _pil@GOTPAGE
Lloh17:
	ldr	x23, [x23, _pil@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_10
; %bb.6:
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _WM9712_PIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WM9712_PIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w22, w8, w22
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_dev_info
	ldr	w8, [x23]
	cbnz	w8, LBB0_11
LBB0_10:
Lloh25:
	adrp	x8, _pressure@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pressure@GOTPAGEOFF]
Lloh27:
	str	xzr, [x8]
LBB0_11:
Lloh28:
	adrp	x23, _delay@GOTPAGE
Lloh29:
	ldr	x23, [x23, _delay@GOTPAGEOFF]
	ldr	w0, [x23]
	cmp	w0, #16
	b.lo	LBB0_13
; %bb.12:
	ldr	w0, [x19, #4]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	mov	w8, #4
	str	w8, [x23]
	ldr	w0, [x19, #4]
Lloh32:
	adrp	x8, _delay_table@GOTPAGE
Lloh33:
	ldr	x8, [x8, _delay_table@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_info
	ldr	w0, [x23]
LBB0_13:
	bl	_WM97XX_DELAY
Lloh37:
	adrp	x8, _mask@GOTPAGE
Lloh38:
	ldr	x8, [x8, _mask@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ubfiz	w8, w8, #4, #2
Lloh40:
	adrp	x9, _coord@GOTPAGE
Lloh41:
	ldr	x9, [x9, _coord@GOTPAGEOFF]
	orr	w8, w8, w22
Lloh42:
	ldr	x9, [x9]
Lloh43:
	adrp	x10, _WM9713_WAIT@GOTPAGE
Lloh44:
	ldr	x10, [x10, _WM9713_WAIT@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w22, w8, w9
	orr	w8, w21, w20
	mov	w9, #65295
	and	w8, w8, w9
	orr	w20, w0, w8
	mov	x0, x19
	mov	w1, #90
	bl	_wm97xx_reg_read
	str	w0, [x19]
Lloh46:
	adrp	x8, _AC97_WM9713_DIG1@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AC97_WM9713_DIG1@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wm97xx_reg_write
Lloh49:
	adrp	x8, _AC97_WM9713_DIG2@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AC97_WM9713_DIG2@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_wm97xx_reg_write
Lloh52:
	adrp	x8, _AC97_WM9713_DIG3@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AC97_WM9713_DIG3@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_wm97xx_reg_write
Lloh55:
	adrp	x8, _AC97_GPIO_STICKY@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AC97_GPIO_STICKY@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_wm97xx_reg_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_rpu,4,2                        ; @rpu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting pen detect pull-up to %d Ohms\n"

	.comm	_five_wire,8,3                  ; @five_wire
	.comm	_WM9713_45W,4,2                 ; @WM9713_45W
l_.str.1:                               ; @.str.1
	.asciz	"setting 5-wire touchscreen mode."

	.comm	_pil,4,2                        ; @pil
l_.str.2:                               ; @.str.2
	.asciz	"Pressure measurement not supported in 5 wire mode, disabling\n"

	.comm	_WM9712_PIL,4,2                 ; @WM9712_PIL
l_.str.3:                               ; @.str.3
	.asciz	"setting pressure measurement current to 400uA."

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

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

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

	.comm	_delay_table,8,3                ; @delay_table
	.comm	_mask,4,2                       ; @mask
	.comm	_coord,8,3                      ; @coord
	.comm	_WM9713_WAIT,4,2                ; @WM9713_WAIT
	.comm	_AC97_WM9713_DIG1,4,2           ; @AC97_WM9713_DIG1
	.comm	_AC97_WM9713_DIG2,4,2           ; @AC97_WM9713_DIG2
	.comm	_AC97_WM9713_DIG3,4,2           ; @AC97_WM9713_DIG3
	.comm	_AC97_GPIO_STICKY,4,2           ; @AC97_GPIO_STICKY
	.no_dead_strip	_wm9713_phy_init
.subsections_via_symbols
