	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_get_gpio_out
_snd_ymfpci_get_gpio_out:               ## @snd_ymfpci_get_gpio_out
	.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	%esi, %r14d
	movq	%rdi, %r15
	callq	_spin_lock_irqsave
	movq	_YDSXGR_GPIOFUNCENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_snd_ymfpci_readw
	movl	%eax, %ebx
	leal	8(%r14), %r13d
	btrl	%r13d, %ebx
	btsl	%r14d, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_ymfpci_writew
	movq	_YDSXGR_GPIOTYPECONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_ymfpci_readw
	leal	(%r14,%r14), %ecx
	movl	$3, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_ymfpci_writew
	movq	_YDSXGR_GPIOFUNCENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	btsl	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_ymfpci_writew
	movq	_YDSXGR_GPIOINSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_ymfpci_readw
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	btl	%r14d, %ebx
	setb	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YDSXGR_GPIOFUNCENABLE,4,2      ## @YDSXGR_GPIOFUNCENABLE
	.comm	_YDSXGR_GPIOTYPECONFIG,4,2      ## @YDSXGR_GPIOTYPECONFIG
	.comm	_YDSXGR_GPIOINSTATUS,4,2        ## @YDSXGR_GPIOINSTATUS
	.no_dead_strip	_snd_ymfpci_get_gpio_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_get_gpio_out
_snd_ymfpci_get_gpio_out:               ; @snd_ymfpci_get_gpio_out
	.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	x19, x1
	mov	x20, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _YDSXGR_GPIOFUNCENABLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _YDSXGR_GPIOFUNCENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_snd_ymfpci_readw
	add	w8, w19, #8
	mov	w9, #1
	lsl	w23, w9, w8
	bic	w8, w0, w23
	lsl	w9, w9, w19
	orr	w21, w8, w9
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_snd_ymfpci_writew
Lloh2:
	adrp	x24, _YDSXGR_GPIOTYPECONFIG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _YDSXGR_GPIOTYPECONFIG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_snd_ymfpci_readw
	lsl	w8, w19, #1
	mov	w9, #3
	lsl	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x24]
	mov	x0, x20
	bl	_snd_ymfpci_writew
	ldr	w1, [x22]
	orr	w2, w21, w23
	mov	x0, x20
	bl	_snd_ymfpci_writew
Lloh4:
	adrp	x8, _YDSXGR_GPIOINSTATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _YDSXGR_GPIOINSTATUS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_ymfpci_readw
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	lsr	w8, w21, w19
	and	w0, w8, #0x1
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_YDSXGR_GPIOFUNCENABLE,4,2      ; @YDSXGR_GPIOFUNCENABLE
	.comm	_YDSXGR_GPIOTYPECONFIG,4,2      ; @YDSXGR_GPIOTYPECONFIG
	.comm	_YDSXGR_GPIOINSTATUS,4,2        ; @YDSXGR_GPIOINSTATUS
	.no_dead_strip	_snd_ymfpci_get_gpio_out
.subsections_via_symbols
