	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interrupt_handler
_interrupt_handler:                     ## @interrupt_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_DBG_IRQ@GOTPCREL(%rip), %r15
	movq	_DBG_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	movq	_amb_mem@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_offsetof
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd_plain
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_offsetof
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	callq	_wr_plain
	movq	_NUM_RX_POOLS@GOTPCREL(%rip), %r15
	cmpb	$0, (%r15)
	je	LBB0_7
## %bb.3:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	decl	%ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%r12b, %esi
	movq	%r14, %rdi
	callq	_rx_take
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incb	%r12b
	cmpb	(%r15), %r12b
	jb	LBB0_4
LBB0_7:
	decl	%ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_tx_take
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	testl	%ebx, %ebx
	movq	_DBG_IRQ@GOTPCREL(%rip), %r15
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_fill_rx_pools
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_PRINTD
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_PRINTD
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_DBG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINTD
LBB0_12:
	movq	_DBG_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_IRQ,4,2                    ## @DBG_IRQ
	.comm	_DBG_FLOW,4,2                   ## @DBG_FLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt_handler: %p"

	.comm	_amb_mem,4,2                    ## @amb_mem
L_.str.1:                               ## @.str.1
	.asciz	"irq not for me: %d"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
L_.str.2:                               ## @.str.2
	.asciz	"FYI: interrupt was %08x"

	.comm	_NUM_RX_POOLS,1,0               ## @NUM_RX_POOLS
L_.str.3:                               ## @.str.3
	.asciz	"work done: %u"

	.comm	_DBG_WARN,4,2                   ## @DBG_WARN
L_.str.4:                               ## @.str.4
	.asciz	"no work done"

L_.str.5:                               ## @.str.5
	.asciz	"interrupt_handler done: %p"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_interrupt,8,3                  ## @interrupt
	.no_dead_strip	_interrupt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interrupt_handler
_interrupt_handler:                     ; @interrupt_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _DBG_IRQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DBG_IRQ@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _DBG_FLOW@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBG_FLOW@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w0, w9, w8
	str	x1, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINTD
Lloh6:
	adrp	x24, _amb_mem@GOTPAGE
Lloh7:
	ldr	x24, [x24, _amb_mem@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_offsetof
	mov	x1, x0
	mov	x0, x19
	bl	_rd_plain
	mov	x21, x0
	ldr	w0, [x22]
	cbz	x21, LBB0_6
; %bb.1:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PRINTD
	ldr	w0, [x24]
	mov	x1, x21
	bl	_offsetof
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_wr_plain
Lloh10:
	adrp	x20, _NUM_RX_POOLS@GOTPAGE
Lloh11:
	ldr	x20, [x20, _NUM_RX_POOLS@GOTPAGEOFF]
	ldrb	w8, [x20]
	cbz	w8, LBB0_7
; %bb.2:
	mov	w24, #0
	mov	w21, #0
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sub	w21, w21, #1
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w1, w24, #0xff
	mov	x0, x19
	bl	_rx_take
	add	w21, w21, #1
	cbz	w0, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldrb	w8, [x20]
	cmp	w8, w24, uxtb
	b.hi	LBB0_3
	b	LBB0_8
LBB0_6:
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PRINTD
Lloh14:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	w21, #0
LBB0_8:
	sub	w20, w21, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_tx_take
	add	w20, w20, #1
	cbz	w0, LBB0_9
; %bb.10:
	cbz	w20, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_fill_rx_pools
	ldr	w0, [x22]
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w8, [x22]
Lloh18:
	adrp	x9, _DBG_WARN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DBG_WARN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	bl	_PRINTD
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w0, w9, w8
	str	x19, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PRINTD
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_IRQ,4,2                    ; @DBG_IRQ
	.comm	_DBG_FLOW,4,2                   ; @DBG_FLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt_handler: %p"

	.comm	_amb_mem,4,2                    ; @amb_mem
l_.str.1:                               ; @.str.1
	.asciz	"irq not for me: %d"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
l_.str.2:                               ; @.str.2
	.asciz	"FYI: interrupt was %08x"

	.comm	_NUM_RX_POOLS,1,0               ; @NUM_RX_POOLS
l_.str.3:                               ; @.str.3
	.asciz	"work done: %u"

	.comm	_DBG_WARN,4,2                   ; @DBG_WARN
l_.str.4:                               ; @.str.4
	.asciz	"no work done"

l_.str.5:                               ; @.str.5
	.asciz	"interrupt_handler done: %p"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_interrupt,8,3                  ; @interrupt
	.no_dead_strip	_interrupt_handler
.subsections_via_symbols
