	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as3722_gpio_pin_set            ## -- Begin function as3722_gpio_pin_set
	.p2align	4, 0x90
_as3722_gpio_pin_set:                   ## @as3722_gpio_pin_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_device_get_softc
	cmpq	%r14, (%rax)
	jle	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	testq	%r15, %r15
	setne	%al
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	_AS3722_GPIO_INVERT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	setne	%cl
	xorb	%al, %cl
	movzbl	%cl, %r15d
	movq	%rbx, %rdi
	callq	_GPIO_LOCK
	movq	_AS3722_GPIO_SIGNAL_OUT@GOTPCREL(%rip), %rax
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movl	(%rax), %esi
	shll	%cl, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_RM1
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_GPIO_UNLOCK
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AS3722_GPIO_INVERT,4,2         ## @AS3722_GPIO_INVERT
	.comm	_AS3722_GPIO_SIGNAL_OUT,4,2     ## @AS3722_GPIO_SIGNAL_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as3722_gpio_pin_set            ; -- Begin function as3722_gpio_pin_set
	.p2align	2
_as3722_gpio_pin_set:                   ; @as3722_gpio_pin_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	bl	_device_get_softc
	ldr	x8, [x0]
	cmp	x8, x20
	b.le	LBB0_2
; %bb.1:
	mov	x19, x0
	cmp	x21, #0
	cset	w8, ne
	ldr	x9, [x0, #8]
	ldr	x9, [x9, x20, lsl #3]
	ldr	w9, [x9]
Lloh0:
	adrp	x10, _AS3722_GPIO_INVERT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AS3722_GPIO_INVERT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	eor	w21, w8, w9
	bl	_GPIO_LOCK
Lloh3:
	adrp	x8, _AS3722_GPIO_SIGNAL_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AS3722_GPIO_SIGNAL_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w2, w8, w20
	lsl	w3, w21, w20
	mov	x0, x19
	bl	_RM1
	mov	x20, x0
	mov	x0, x19
	bl	_GPIO_UNLOCK
	mov	x0, x20
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AS3722_GPIO_INVERT,4,2         ; @AS3722_GPIO_INVERT
	.comm	_AS3722_GPIO_SIGNAL_OUT,4,2     ; @AS3722_GPIO_SIGNAL_OUT
.subsections_via_symbols
