	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_pin_to_irq
_gpio_pin_to_irq:                       ## @gpio_pin_to_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_gpio_to_pfc
	movq	8(%rax), %rcx
	movl	(%rcx), %r9d
	testq	%r9, %r9
	je	LBB0_8
## %bb.1:
	movq	8(%rcx), %r8
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%r9, %rdx
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r8,%rdx,8), %rdi
	movzwl	(%rdi), %ecx
	testw	%cx, %cx
	js	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzwl	%cx, %ecx
	cmpl	%ebx, %ecx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%esi, %ecx
	movzwl	(%rdi,%rcx,2), %ecx
	incl	%esi
	testw	%cx, %cx
	jns	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movl	%edx, %ecx
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gpio_pin_to_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_pin_to_irq
_gpio_pin_to_irq:                       ; @gpio_pin_to_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_gpio_to_pfc
	ldr	x10, [x0, #8]
	ldr	w8, [x10]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x9, #0
	ldr	x10, [x10, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x11, [x10, x9, lsl #3]
	ldrsh	w12, [x11]
	tbnz	w12, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w13, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w19, w12, uxth
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrsh	w12, [x11, w13, uxtw #1]
	add	w13, w13, #1
	tbz	w12, #31, LBB0_5
	b	LBB0_2
LBB0_7:
	ldr	x8, [x0]
	ldr	w0, [x8, w9, uxtw #2]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gpio_pin_to_irq
.subsections_via_symbols
