	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_intr_internal
_bcm_gpio_intr_internal:                ## @bcm_gpio_intr_internal
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_BCM_GPIO_GPEDS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BCM_GPIO_READ
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	%eax, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_device_printf
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %ebx
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BCM_GPIO_PINS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	bsfl	%ebx, %r13d
	addl	%eax, %r13d
	movq	8(%r14), %r14
	movslq	%r13d, %r15
	leaq	(%r14,%r15,8), %r12
	movq	%r12, %rdi
	callq	_bcm_gpio_isrc_is_level
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_bcm_gpio_isrc_eoi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r15,8), %rdi
	addq	$4, %rdi
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_intr_isrc_dispatch
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bcm_gpio_isrc_mask
	movq	%r12, %rdi
	callq	_bcm_gpio_isrc_is_level
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bcm_gpio_isrc_eoi
	jmp	LBB0_7
LBB0_9:
	movq	_FILTER_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_GPIO_PINS_PER_BANK,4,2     ## @BCM_GPIO_PINS_PER_BANK
	.comm	_curthread,8,3                  ## @curthread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stray irq %u disabled\n"

	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.no_dead_strip	_bcm_gpio_intr_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_gpio_intr_internal
_bcm_gpio_intr_internal:                ; @bcm_gpio_intr_internal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_BCM_GPIO_GPEDS
	mov	x1, x0
	mov	x0, x20
	bl	_BCM_GPIO_READ
	cbz	w0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x25, _BCM_GPIO_PINS_PER_BANK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BCM_GPIO_PINS_PER_BANK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _curthread@GOTPAGE
Lloh3:
	ldr	x26, [x26, _curthread@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, x24
	bl	_device_printf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	bics	w21, w21, w8
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	rbit	w9, w21
	clz	w9, w9
	madd	w24, w8, w19, w9
	ldr	x27, [x20, #8]
	add	x23, x27, w24, sxtw #3
	mov	x0, x23
	bl	_bcm_gpio_isrc_is_level
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_bcm_gpio_isrc_eoi
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x24, w24
	add	x8, x27, x24, lsl #3
	add	x0, x8, #4
	ldr	x8, [x26]
	ldr	w1, [x8]
	bl	_intr_isrc_dispatch
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_bcm_gpio_isrc_mask
	mov	x0, x23
	bl	_bcm_gpio_isrc_is_level
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_bcm_gpio_isrc_eoi
	b	LBB0_2
LBB0_9:
Lloh6:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_GPIO_PINS_PER_BANK,4,2     ; @BCM_GPIO_PINS_PER_BANK
	.comm	_curthread,8,3                  ; @curthread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stray irq %u disabled\n"

	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.no_dead_strip	_bcm_gpio_intr_internal
.subsections_via_symbols
