	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_pins
_dump_pins:                             ## @dump_pins
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r13d
	leaq	-48(%rbp), %rsi
	callq	_gpio_pin_list
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%eax, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rbx
	addq	$24, %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
	addq	$24, %r12
	cmpq	%r12, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %r15
	movl	(%r15,%r12), %esi
	movl	%r13d, %edi
	callq	_gpio_pin_get
	movl	(%r15,%r12), %esi
	movq	8(%r15,%r12), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	20(%r15,%r12), %edi
	callq	_print_caps
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	16(%r15,%r12), %edi
	callq	_print_caps
	jmp	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_dump_pins.cold.1
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function dump_pins.cold.1
_dump_pins.cold.1:                      ## @dump_pins.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio_pin_list"

L_.str.1:                               ## @.str.1
	.asciz	"pin %02d:\t%d\t%s"

L_.str.2:                               ## @.str.2
	.asciz	", caps:"

	.no_dead_strip	_dump_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_pins
_dump_pins:                             ; @dump_pins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #24
	bl	_gpio_pin_list
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x23, #0
	add	w8, w0, #1
	mov	w9, #24
	umull	x24, w8, w9
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh2:
	adrp	x22, l_.str.2@PAGE
Lloh3:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_putchar
	add	x23, x23, #24
	cmp	x24, x23
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x25, x8, x23
	ldr	w1, [x25]
	mov	x0, x20
	bl	_gpio_pin_get
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x25, #8]
	ldr	w9, [x25]
	stp	x0, x8, [sp, #8]
	str	x9, [sp]
	mov	x0, x21
	bl	_printf
	ldr	w0, [x25, #20]
	bl	_print_caps
	cbz	w19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_printf
	ldr	w0, [x25, #16]
	bl	_print_caps
	b	LBB0_2
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	_dump_pins.cold.1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function dump_pins.cold.1
_dump_pins.cold.1:                      ; @dump_pins.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio_pin_list"

l_.str.1:                               ; @.str.1
	.asciz	"pin %02d:\t%d\t%s"

l_.str.2:                               ; @.str.2
	.asciz	", caps:"

	.no_dead_strip	_dump_pins
.subsections_via_symbols
