	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_set                   ## -- Begin function gpio_pin_set
	.p2align	4, 0x90
_gpio_pin_set:                          ## @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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GPIO_VALUE_INVALID@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpq	%rdx, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r14d
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	%r15d, -40(%rbp)
	movq	%rbx, -48(%rbp)
	movq	_GPIOSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	sarq	$63, %rax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_VALUE_INVALID,8,3         ## @GPIO_VALUE_INVALID
	.comm	_GPIOSET,4,2                    ## @GPIOSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_set                   ; -- Begin function gpio_pin_set
	.p2align	2
_gpio_pin_set:                          ; @gpio_pin_set
	.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
Lloh0:
	adrp	x8, _GPIO_VALUE_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_VALUE_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
	str	w21, [sp, #8]
	str	x20, [sp]
Lloh3:
	adrp	x8, _GPIOSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	asr	x0, x0, #63
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_VALUE_INVALID,8,3         ; @GPIO_VALUE_INVALID
	.comm	_GPIOSET,4,2                    ; @GPIOSET
.subsections_via_symbols
