	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_gpio_to_pin
_intel_gpio_to_pin:                     ## @intel_gpio_to_pin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.1:
	movl	%esi, %eax
	movq	8(%rdi), %r9
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	cmpq	%r8, %r11
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r11, %rdi
	shlq	$4, %rdi
	movl	(%r9,%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r9,%rdi), %r10
	movq	8(%r9,%rdi), %rdi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	addq	$12, %rdi
	decq	%rsi
	je	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %r14d
	cmpl	%eax, %r14d
	ja	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%rdi), %ebx
	addl	%r14d, %ebx
	cmpl	%eax, %ebx
	jbe	LBB0_10
## %bb.6:
	subl	%r14d, %eax
	addl	8(%rdi), %eax
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	%r10, (%rdx)
LBB0_8:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.9:
	movq	%rdi, (%rcx)
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intel_gpio_to_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_gpio_to_pin
_intel_gpio_to_pin:                     ; @intel_gpio_to_pin
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x11, x10, x9, lsl #4
	ldr	w13, [x11]
	cmp	w13, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x11, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #12
	subs	x13, x13, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x12]
	cmp	w14, w1
	b.hi	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w15, [x12, #4]
	add	w15, w15, w14
	cmp	w15, w1
	b.ls	LBB0_5
; %bb.8:
	ldr	w8, [x12, #8]
	sub	w9, w1, w14
	add	w0, w9, w8
	cbz	x2, LBB0_10
; %bb.9:
	str	x11, [x2]
LBB0_10:
	cbz	x3, LBB0_13
; %bb.11:
	str	x12, [x3]
	ret
LBB0_12:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intel_gpio_to_pin
.subsections_via_symbols
