	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_list                  ## -- Begin function gpio_pin_list
	.p2align	4, 0x90
_gpio_pin_list:                         ## @gpio_pin_list
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	$0, (%rsi)
	movq	_GPIOMAXPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_ioctl
	movl	$-1, %r13d
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	-44(%rbp), %edi
	cmpl	$4097, %edi                     ## imm = 0x1001
	jb	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_3:
	incl	%edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	$-1, %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r12
	movl	%r12d, (%rbx)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_gpio_pin_config
	movslq	-44(%rbp), %r13
	addq	$4, %rbx
	cmpq	%r13, %r12
	jl	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOMAXPIN,4,2                 ## @GPIOMAXPIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_pin_list                  ; -- Begin function gpio_pin_list
	.p2align	2
_gpio_pin_list:                         ; @gpio_pin_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1]
Lloh0:
	adrp	x8, _GPIOMAXPIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOMAXPIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	tbnz	x0, #63, LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #1, lsl #12                 ; =4096
	b.ls	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	b	LBB0_7
LBB0_3:
	add	w0, w8, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	mov	x22, #-1
	mov	x1, x0
	mov	x23, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, #1
	str	w22, [x23], #4
	mov	x0, x20
	bl	_gpio_pin_config
	ldrsw	x0, [sp, #12]
	mov	x1, x23
	cmp	x22, x0
	b.lt	LBB0_5
; %bb.6:
	str	x21, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOMAXPIN,4,2                 ; @GPIOMAXPIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
