	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_gpio_irq_handler
_bcm2835_gpio_irq_handler:              ## @bcm2835_gpio_irq_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_irq_desc_get_handler_data
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_irq_desc_get_chip
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_irq_desc_get_irq
	movq	_BCM2835_NUM_IRQS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.3:
	movq	(%rbx), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rdx,%rbx,4)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_4
## %bb.6:
	movl	%ecx, %ebx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	cmpl	%ecx, %ebx
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_BUG
LBB0_8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_chained_irq_enter
	cmpl	$2, %ebx
	je	LBB0_13
## %bb.9:
	cmpl	$1, %ebx
	je	LBB0_12
## %bb.10:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$268435455, %edx                ## imm = 0xFFFFFFF
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$4177920, %edx                  ## imm = 0x3FC000
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_bcm2835_gpio_irq_handle_bank
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$16383, %edx                    ## imm = 0x3FFF
LBB0_14:
	callq	_bcm2835_gpio_irq_handle_bank
LBB0_15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chained_irq_exit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_NUM_IRQS,4,2           ## @BCM2835_NUM_IRQS
	.no_dead_strip	_bcm2835_gpio_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_gpio_irq_handler
_bcm2835_gpio_irq_handler:              ; @bcm2835_gpio_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_irq_desc_get_handler_data
	mov	x22, x0
	bl	_gpiochip_get_data
	mov	x21, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x20, x0
	mov	x0, x19
	bl	_irq_desc_get_irq
Lloh0:
	adrp	x8, _BCM2835_NUM_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM2835_NUM_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	ldr	x9, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x23, lsl #2]
	cmp	w10, w0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x8, x23
	b.ne	LBB0_2
; %bb.4:
	mov	x23, x8
	b	LBB0_7
LBB0_5:
	mov	w23, #0
LBB0_6:
	cmp	w23, w8
	b.ne	LBB0_8
LBB0_7:
	bl	_BUG
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_chained_irq_enter
	cmp	w23, #2
	b.eq	LBB0_12
; %bb.9:
	cmp	w23, #1
	b.eq	LBB0_13
; %bb.10:
	cbnz	w23, LBB0_15
; %bb.11:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #268435455
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #4177920
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #-268435456
	bl	_bcm2835_gpio_irq_handle_bank
	mov	x0, x21
	mov	w1, #1
	mov	w2, #16383
LBB0_14:
	bl	_bcm2835_gpio_irq_handle_bank
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_chained_irq_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_NUM_IRQS,4,2           ; @BCM2835_NUM_IRQS
	.no_dead_strip	_bcm2835_gpio_irq_handler
.subsections_via_symbols
