	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_set_name              ## -- Begin function gpio_pin_set_name
	.p2align	4, 0x90
_gpio_pin_set_name:                     ## @gpio_pin_set_name
	.cfi_startproc
## %bb.0:
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	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	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r14d
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	%r15d, -36(%rbp)
	movl	-40(%rbp), %edi
	movq	_GPIOMAXNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_strlcpy
	movq	_GPIOSETNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	sarq	$63, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_GPIOMAXNAME,4,2                ## @GPIOMAXNAME
	.comm	_GPIOSETNAME,4,2                ## @GPIOSETNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_set_name              ; -- Begin function gpio_pin_set_name
	.p2align	2
_gpio_pin_set_name:                     ; @gpio_pin_set_name
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_2
; %bb.1:
	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, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	str	w21, [sp, #12]
	ldr	w0, [sp, #8]
Lloh0:
	adrp	x8, _GPIOMAXNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOMAXNAME@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strlcpy
Lloh3:
	adrp	x8, _GPIOSETNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOSETNAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	asr	x0, x0, #63
	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
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOMAXNAME,4,2                ; @GPIOMAXNAME
	.comm	_GPIOSETNAME,4,2                ; @GPIOSETNAME
.subsections_via_symbols
