	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avic_map
_avic_map:                              ## @avic_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$64, %edx
	jb	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movl	%edx, %eax
	shrl	$5, %eax
	movq	(%r14), %rcx
	movl	(%rcx,%rax,4), %eax
	btl	%edx, %eax
	jb	LBB0_3
## %bb.4:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	_avic_chip@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_irq_set_chip_data
	movl	%ebx, %edi
	callq	_irq_set_probe
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_avic_chip,4,2                  ## @avic_chip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.no_dead_strip	_avic_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avic_map
_avic_map:                              ; @avic_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
	cmp	w2, #64
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	ldr	x20, [x0]
	lsr	w8, w2, #5
	ldr	x9, [x20]
	ldr	w8, [x9, w8, uxtw #2]
Lloh3:
	adrp	x9, _handle_level_irq@GOTPAGE
Lloh4:
	ldr	x9, [x9, _handle_level_irq@GOTPAGEOFF]
Lloh5:
	adrp	x10, _handle_edge_irq@GOTPAGE
Lloh6:
	ldr	x10, [x10, _handle_edge_irq@GOTPAGEOFF]
	lsr	w8, w8, w2
	tst	w8, #0x1
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
Lloh7:
	adrp	x1, _avic_chip@GOTPAGE
Lloh8:
	ldr	x1, [x1, _avic_chip@GOTPAGEOFF]
	mov	x0, x19
	bl	_irq_set_chip_and_handler
	mov	x0, x19
	mov	x1, x20
	bl	_irq_set_chip_data
	mov	x0, x19
	bl	_irq_set_probe
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_avic_chip,4,2                  ; @avic_chip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.no_dead_strip	_avic_map
.subsections_via_symbols
