	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_config                ## -- Begin function gpio_pin_config
	.p2align	4, 0x90
_gpio_pin_config:                       ## @gpio_pin_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, %r14d
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movl	12(%rsi), %eax
	movl	%eax, -20(%rbp)
	movq	_GPIOGETCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movl	-24(%rbp), %esi
	movq	_GPIOMAXNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movl	-28(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-32(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOGETCONFIG,4,2              ## @GPIOGETCONFIG
	.comm	_GPIOMAXNAME,4,2                ## @GPIOMAXNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_config                ; -- Begin function gpio_pin_config
	.p2align	2
_gpio_pin_config:                       ; @gpio_pin_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #12]
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _GPIOGETCONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOGETCONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #8]
Lloh3:
	adrp	x8, _GPIOMAXNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOMAXNAME@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_strlcpy
	mov	w0, #0
	ldr	d0, [sp]
	str	d0, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOGETCONFIG,4,2              ; @GPIOGETCONFIG
	.comm	_GPIOMAXNAME,4,2                ; @GPIOMAXNAME
.subsections_via_symbols
