	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pinnum_by_name
_get_pinnum_by_name:                    ## @get_pinnum_by_name
	.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
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	-48(%rbp), %rsi
	callq	_gpio_pin_list
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%eax, %r12d
	incl	%r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %r13
	movl	4(%r13,%rbx,8), %esi
	movl	%r15d, %edi
	callq	_gpio_pin_get
	movl	(%r13,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
## %bb.4:
	movl	$-1, %ebx
LBB0_5:
	movq	-48(%rbp), %rdi
	callq	_free
	movl	%ebx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_get_pinnum_by_name.cold.1
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_pinnum_by_name.cold.1
_get_pinnum_by_name.cold.1:             ## @get_pinnum_by_name.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"

	.no_dead_strip	_get_pinnum_by_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pinnum_by_name
_get_pinnum_by_name:                    ; @get_pinnum_by_name
	.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	x20, x1
	mov	x21, x0
	add	x1, sp, #8
	bl	_gpio_pin_list
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x22, #0
	mov	w19, #0
	add	w8, w0, #1
	lsl	x23, x8, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x24, x8, x22
	ldr	w1, [x24, #4]
	mov	x0, x21
	bl	_gpio_pin_get
	ldr	w1, [x24]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	add	x22, x22, #8
	cmp	x23, x22
	b.ne	LBB0_2
; %bb.4:
	mov	w19, #-1
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x19
	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
LBB0_6:
	bl	_get_pinnum_by_name.cold.1
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_pinnum_by_name.cold.1
_get_pinnum_by_name.cold.1:             ; @get_pinnum_by_name.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio_pin_list"

	.no_dead_strip	_get_pinnum_by_name
.subsections_via_symbols
