	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm97xx_config_gpio             ## -- Begin function wm97xx_config_gpio
	.p2align	4, 0x90
_wm97xx_config_gpio:                    ## @wm97xx_config_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	_AC97_GPIO_POLARITY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_GPIO_POL_HIGH@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	orl	%r14d, %edx
	movl	%r14d, %ebx
	notl	%ebx
	andl	%ebx, %eax
	cmpl	%r13d, (%rcx)
	cmovnel	%eax, %edx
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_write
	movq	_AC97_GPIO_STICKY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_GPIO_STICKY@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	orl	%r14d, %edx
	andl	%ebx, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, (%rcx)
	cmovnel	%eax, %edx
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_write
	movq	_AC97_GPIO_WAKEUP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_GPIO_WAKE@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	orl	%r14d, %edx
	andl	%ebx, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, (%rcx)
	cmovnel	%eax, %edx
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_write
	movq	_AC97_GPIO_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_GPIO_IN@GOTPCREL(%rip), %rcx
	orl	%eax, %r14d
	andl	%eax, %ebx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rcx)
	cmovel	%r14d, %ebx
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wm97xx_reg_write
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_GPIO_POLARITY,4,2         ## @AC97_GPIO_POLARITY
	.comm	_WM97XX_GPIO_POL_HIGH,4,2       ## @WM97XX_GPIO_POL_HIGH
	.comm	_AC97_GPIO_STICKY,4,2           ## @AC97_GPIO_STICKY
	.comm	_WM97XX_GPIO_STICKY,4,2         ## @WM97XX_GPIO_STICKY
	.comm	_AC97_GPIO_WAKEUP,4,2           ## @AC97_GPIO_WAKEUP
	.comm	_WM97XX_GPIO_WAKE,4,2           ## @WM97XX_GPIO_WAKE
	.comm	_AC97_GPIO_CFG,4,2              ## @AC97_GPIO_CFG
	.comm	_WM97XX_GPIO_IN,4,2             ## @WM97XX_GPIO_IN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm97xx_config_gpio             ; -- Begin function wm97xx_config_gpio
	.p2align	2
_wm97xx_config_gpio:                    ; @wm97xx_config_gpio
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x25, _AC97_GPIO_POLARITY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AC97_GPIO_POLARITY@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_wm97xx_reg_read
Lloh2:
	adrp	x8, _WM97XX_GPIO_POL_HIGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM97XX_GPIO_POL_HIGH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w9, w0, w21
	bic	w10, w0, w21
	cmp	w8, w24
	csel	w2, w9, w10, eq
	ldr	w1, [x25]
	mov	x0, x19
	bl	_wm97xx_reg_write
Lloh5:
	adrp	x24, _AC97_GPIO_STICKY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AC97_GPIO_STICKY@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_wm97xx_reg_read
Lloh7:
	adrp	x8, _WM97XX_GPIO_STICKY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM97XX_GPIO_STICKY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w9, w0, w21
	bic	w10, w0, w21
	cmp	w8, w23
	csel	w2, w9, w10, eq
	ldr	w1, [x24]
	mov	x0, x19
	bl	_wm97xx_reg_write
Lloh10:
	adrp	x23, _AC97_GPIO_WAKEUP@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AC97_GPIO_WAKEUP@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wm97xx_reg_read
Lloh12:
	adrp	x8, _WM97XX_GPIO_WAKE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM97XX_GPIO_WAKE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w9, w0, w21
	bic	w10, w0, w21
	cmp	w8, w22
	csel	w2, w9, w10, eq
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wm97xx_reg_write
Lloh15:
	adrp	x22, _AC97_GPIO_CFG@GOTPAGE
Lloh16:
	ldr	x22, [x22, _AC97_GPIO_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm97xx_reg_read
Lloh17:
	adrp	x8, _WM97XX_GPIO_IN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM97XX_GPIO_IN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w9, w0, w21
	bic	w10, w0, w21
	cmp	w8, w20
	csel	w2, w9, w10, eq
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm97xx_reg_write
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_GPIO_POLARITY,4,2         ; @AC97_GPIO_POLARITY
	.comm	_WM97XX_GPIO_POL_HIGH,4,2       ; @WM97XX_GPIO_POL_HIGH
	.comm	_AC97_GPIO_STICKY,4,2           ; @AC97_GPIO_STICKY
	.comm	_WM97XX_GPIO_STICKY,4,2         ; @WM97XX_GPIO_STICKY
	.comm	_AC97_GPIO_WAKEUP,4,2           ; @AC97_GPIO_WAKEUP
	.comm	_WM97XX_GPIO_WAKE,4,2           ; @WM97XX_GPIO_WAKE
	.comm	_AC97_GPIO_CFG,4,2              ; @AC97_GPIO_CFG
	.comm	_WM97XX_GPIO_IN,4,2             ; @WM97XX_GPIO_IN
.subsections_via_symbols
