	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm97xx_reg_write               ## -- Begin function wm97xx_reg_write
	.p2align	4, 0x90
_wm97xx_reg_write:                      ## @wm97xx_reg_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AC97_WM9713_DIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jg	LBB0_3
## %bb.1:
	movq	_AC97_WM9713_DIG3@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_3
## %bb.2:
	movq	(%rdi), %r8
	movl	%esi, %ecx
	subl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	movl	%edx, (%r8,%rax,4)
LBB0_3:
	movq	_AC97_GPIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jg	LBB0_6
## %bb.4:
	movq	_AC97_MISC_AFE@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_6
## %bb.5:
	movq	8(%rdi), %r8
	movl	%esi, %ecx
	subl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	movl	%edx, (%r8,%rax,4)
LBB0_6:
	cmpl	$90, %esi
	jne	LBB0_8
## %bb.7:
	movl	%edx, 16(%rdi)
LBB0_8:
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_WM9713_DIG1,4,2           ## @AC97_WM9713_DIG1
	.comm	_AC97_WM9713_DIG3,4,2           ## @AC97_WM9713_DIG3
	.comm	_AC97_GPIO_CFG,4,2              ## @AC97_GPIO_CFG
	.comm	_AC97_MISC_AFE,4,2              ## @AC97_MISC_AFE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm97xx_reg_write               ; -- Begin function wm97xx_reg_write
	.p2align	2
_wm97xx_reg_write:                      ; @wm97xx_reg_write
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AC97_WM9713_DIG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC97_WM9713_DIG1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AC97_WM9713_DIG3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC97_WM9713_DIG3@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #8, le
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x0]
	sub	w8, w1, w8
	asr	w8, w8, #1
	str	w2, [x9, w8, sxtw #2]
LBB0_2:
Lloh6:
	adrp	x8, _AC97_GPIO_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC97_GPIO_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AC97_MISC_AFE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AC97_MISC_AFE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #8, le
	b.ge	LBB0_6
; %bb.3:
	cmp	w1, #90
	b.eq	LBB0_7
LBB0_4:
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_8
LBB0_5:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x3, [x8]
	br	x3
LBB0_6:
	ldr	x9, [x0, #8]
	sub	w8, w1, w8
	asr	w8, w8, #1
	str	w2, [x9, w8, sxtw #2]
	cmp	w1, #90
	b.ne	LBB0_4
LBB0_7:
	str	w2, [x0, #16]
	ldr	x0, [x0, #24]
	cbnz	x0, LBB0_5
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_WM9713_DIG1,4,2           ; @AC97_WM9713_DIG1
	.comm	_AC97_WM9713_DIG3,4,2           ; @AC97_WM9713_DIG3
	.comm	_AC97_GPIO_CFG,4,2              ; @AC97_GPIO_CFG
	.comm	_AC97_MISC_AFE,4,2              ; @AC97_MISC_AFE
.subsections_via_symbols
