	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_set_flags             ## -- Begin function gpio_pin_set_flags
	.p2align	4, 0x90
_gpio_pin_set_flags:                    ## @gpio_pin_set_flags
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	4(%rsi), %eax
	movl	%eax, -4(%rbp)
	movl	(%rsi), %eax
	movl	%eax, -8(%rbp)
	movq	_GPIOSETCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdx
	callq	_ioctl
	sarq	$63, %rax
	addq	$16, %rsp
	popq	%rbp
                                        ## kill: def $eax killed $eax killed $rax
	retq
LBB0_1:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOSETCONFIG,4,2              ## @GPIOSETCONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_set_flags             ; -- Begin function gpio_pin_set_flags
	.p2align	2
_gpio_pin_set_flags:                    ; @gpio_pin_set_flags
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	d0, [x1]
	str	d0, [sp, #8]
Lloh0:
	adrp	x8, _GPIOSETCONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOSETCONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	asr	x0, x0, #63
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOSETCONFIG,4,2              ; @GPIOSETCONFIG
.subsections_via_symbols
