	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_as3722_gpio_pin_toggle         ## -- Begin function as3722_gpio_pin_toggle
	.p2align	4, 0x90
_as3722_gpio_pin_toggle:                ## @as3722_gpio_pin_toggle
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_device_get_softc
	cmpl	%r14d, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GPIO_LOCK
	movq	_AS3722_GPIO_SIGNAL_OUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_RD1
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_GPIO_UNLOCK
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	movl	-36(%rbp), %ecx
	btcl	%r14d, %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_RM1
	movq	%r15, %rdi
	callq	_GPIO_UNLOCK
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_toggle         ; -- Begin function as3722_gpio_pin_toggle
	.p2align	2
_as3722_gpio_pin_toggle:                ; @as3722_gpio_pin_toggle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_device_get_softc
	ldr	w8, [x0]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_GPIO_LOCK
Lloh0:
	adrp	x22, _AS3722_GPIO_SIGNAL_OUT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AS3722_GPIO_SIGNAL_OUT@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_RD1
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w8, #1
	lsl	w2, w8, w20
	ldr	w8, [sp, #12]
	eor	w3, w8, w2
	str	w3, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_RM1
LBB0_3:
	mov	x0, x19
	bl	_GPIO_UNLOCK
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AS3722_GPIO_SIGNAL_OUT,4,2     ; @AS3722_GPIO_SIGNAL_OUT
.subsections_via_symbols
