	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm97xx_set_gpio                ## -- Begin function wm97xx_set_gpio
	.p2align	4, 0x90
_wm97xx_set_gpio:                       ## @wm97xx_set_gpio
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_AC97_GPIO_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_GPIO_HIGH@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	orl	%ebx, %edx
	notl	%ebx
	andl	%eax, %ebx
	cmpl	%r12d, (%rcx)
	cmovel	%edx, %ebx
	movq	(%r15), %rax
	movq	_WM9712_ID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	_WM97xx_WM1613@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movl	(%r13), %esi
	jmp	LBB0_4
LBB0_2:
	movl	(%r13), %esi
	addl	%ebx, %ebx
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_wm97xx_reg_write
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_GPIO_STATUS,4,2           ## @AC97_GPIO_STATUS
	.comm	_WM97XX_GPIO_HIGH,4,2           ## @WM97XX_GPIO_HIGH
	.comm	_WM9712_ID2,8,3                 ## @WM9712_ID2
	.comm	_WM97xx_WM1613,8,3              ## @WM97xx_WM1613
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm97xx_set_gpio                ; -- Begin function wm97xx_set_gpio
	.p2align	2
_wm97xx_set_gpio:                       ; @wm97xx_set_gpio
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _AC97_GPIO_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AC97_GPIO_STATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_wm97xx_reg_read
Lloh2:
	adrp	x8, _WM97XX_GPIO_HIGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM97XX_GPIO_HIGH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w9, w0, w22
	bic	w10, w0, w22
	cmp	w8, w21
	csel	w2, w9, w10, eq
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _WM9712_ID2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WM9712_ID2@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _WM97xx_WM1613@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WM97xx_WM1613@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldr	w1, [x23]
	b	LBB0_4
LBB0_3:
	ldr	w1, [x23]
	lsl	w2, w2, #1
LBB0_4:
	mov	x0, x20
	bl	_wm97xx_reg_write
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_GPIO_STATUS,4,2           ; @AC97_GPIO_STATUS
	.comm	_WM97XX_GPIO_HIGH,4,2           ; @WM97XX_GPIO_HIGH
	.comm	_WM9712_ID2,8,3                 ; @WM9712_ID2
	.comm	_WM97xx_WM1613,8,3              ; @WM97xx_WM1613
.subsections_via_symbols
