	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9713_dig_enable
_wm9713_dig_enable:                     ## @wm9713_dig_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_AC97_EXTENDED_MID@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_wm97xx_reg_read
	movl	(%r14), %esi
	andl	$32767, %eax                    ## imm = 0x7FFF
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_wm97xx_reg_write
	movq	_AC97_WM9713_DIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_WM97XX_PRP_DET_DIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	8(%rax), %edx
	movq	%rbx, %rdi
	callq	_wm97xx_reg_write
	movq	_AC97_WM97XX_DIGITISER_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wm97xx_reg_read                ## TAILCALL
LBB0_2:
	movq	_AC97_WM9713_DIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_WM97XX_PRP_DET_DIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	8(%rax), %edx
	movq	%rbx, %rdi
	callq	_wm97xx_reg_write
	movq	_AC97_EXTENDED_MID@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_wm97xx_reg_read
	movl	(%r14), %esi
	orl	$32768, %eax                    ## imm = 0x8000
	movq	%rbx, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wm97xx_reg_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_EXTENDED_MID,4,2          ## @AC97_EXTENDED_MID
	.comm	_AC97_WM9713_DIG3,4,2           ## @AC97_WM9713_DIG3
	.comm	_WM97XX_PRP_DET_DIG,4,2         ## @WM97XX_PRP_DET_DIG
	.comm	_AC97_WM97XX_DIGITISER_RD,4,2   ## @AC97_WM97XX_DIGITISER_RD
	.no_dead_strip	_wm9713_dig_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm9713_dig_enable
_wm9713_dig_enable:                     ; @wm9713_dig_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _AC97_EXTENDED_MID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AC97_EXTENDED_MID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm97xx_reg_read
	ldr	w1, [x20]
	and	w2, w0, #0x7fff
	mov	x0, x19
	bl	_wm97xx_reg_write
Lloh2:
	adrp	x8, _AC97_WM9713_DIG3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC97_WM9713_DIG3@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
Lloh5:
	adrp	x9, _WM97XX_PRP_DET_DIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WM97XX_PRP_DET_DIG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm97xx_reg_write
Lloh8:
	adrp	x8, _AC97_WM97XX_DIGITISER_RD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_WM97XX_DIGITISER_RD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wm97xx_reg_read
LBB0_2:
Lloh11:
	adrp	x8, _AC97_WM9713_DIG3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC97_WM9713_DIG3@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
Lloh14:
	adrp	x9, _WM97XX_PRP_DET_DIG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WM97XX_PRP_DET_DIG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_wm97xx_reg_write
Lloh17:
	adrp	x20, _AC97_EXTENDED_MID@GOTPAGE
Lloh18:
	ldr	x20, [x20, _AC97_EXTENDED_MID@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm97xx_reg_read
	ldr	w1, [x20]
	orr	w2, w0, #0x8000
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wm97xx_reg_write
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_EXTENDED_MID,4,2          ; @AC97_EXTENDED_MID
	.comm	_AC97_WM9713_DIG3,4,2           ; @AC97_WM9713_DIG3
	.comm	_WM97XX_PRP_DET_DIG,4,2         ; @WM97XX_PRP_DET_DIG
	.comm	_AC97_WM97XX_DIGITISER_RD,4,2   ; @AC97_WM97XX_DIGITISER_RD
	.no_dead_strip	_wm9713_dig_enable
.subsections_via_symbols
