	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xintc_map
_xintc_map:                             ## @xintc_map
	.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
	movq	_xintc_irqc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	btl	%edx, %eax
	jae	LBB0_2
## %bb.1:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_intc_dev@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	callq	_irq_set_chip_and_handler_name
	movq	_IRQ_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_irq_clear_status_flags
	jmp	LBB0_3
LBB0_2:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_intc_dev@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movl	%ebx, %edi
	callq	_irq_set_chip_and_handler_name
	movq	_IRQ_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_irq_set_status_flags
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xintc_irqc,8,3                 ## @xintc_irqc
	.comm	_intc_dev,4,2                   ## @intc_dev
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"edge"

	.comm	_IRQ_LEVEL,4,2                  ## @IRQ_LEVEL
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
L_.str.1:                               ## @.str.1
	.asciz	"level"

	.no_dead_strip	_xintc_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xintc_map
_xintc_map:                             ; @xintc_map
	.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
Lloh0:
	adrp	x8, _xintc_irqc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xintc_irqc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsr	w8, w8, w2
	tbz	w8, #0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _handle_edge_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _handle_edge_irq@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, _intc_dev@GOTPAGE
Lloh7:
	ldr	x1, [x1, _intc_dev@GOTPAGEOFF]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_irq_set_chip_and_handler_name
Lloh10:
	adrp	x8, _IRQ_LEVEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_LEVEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_clear_status_flags
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh14:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, _intc_dev@GOTPAGE
Lloh17:
	ldr	x1, [x1, _intc_dev@GOTPAGEOFF]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_irq_set_chip_and_handler_name
Lloh20:
	adrp	x8, _IRQ_LEVEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_LEVEL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_status_flags
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_xintc_irqc,8,3                 ; @xintc_irqc
	.comm	_intc_dev,4,2                   ; @intc_dev
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"edge"

	.comm	_IRQ_LEVEL,4,2                  ; @IRQ_LEVEL
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
l_.str.1:                               ; @.str.1
	.asciz	"level"

	.no_dead_strip	_xintc_map
.subsections_via_symbols
