	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_nmk_gpio_from_pin
_find_nmk_gpio_from_pin:                ## @find_nmk_gpio_from_pin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NMK_MAX_BANKS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	_nmk_gpio_chips@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %r8
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	cmpl	%edi, %ecx
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	4(%rax), %ecx
	cmpl	%edi, %ecx
	jbe	LBB0_5
## %bb.7:
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NMK_MAX_BANKS,4,2              ## @NMK_MAX_BANKS
	.comm	_nmk_gpio_chips,8,3             ## @nmk_gpio_chips
	.no_dead_strip	_find_nmk_gpio_from_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_nmk_gpio_from_pin
_find_nmk_gpio_from_pin:                ; @find_nmk_gpio_from_pin
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NMK_MAX_BANKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NMK_MAX_BANKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _nmk_gpio_chips@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nmk_gpio_chips@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x10]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x8]
	cmp	w11, w0
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x8, #4]
	add	w11, w12, w11
	cmp	w11, w0
	b.ls	LBB0_2
; %bb.6:
	mov	x0, x8
	ret
LBB0_7:
	mov	x8, #0
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NMK_MAX_BANKS,4,2              ; @NMK_MAX_BANKS
	.comm	_nmk_gpio_chips,8,3             ; @nmk_gpio_chips
	.no_dead_strip	_find_nmk_gpio_from_pin
.subsections_via_symbols
