	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_ioapic_to_ir
_map_ioapic_to_ir:                      ## @map_ioapic_to_ir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_IO_APICS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_ir_ioapic@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	shlq	$4, %rcx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rdx,%rsi)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdx,%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_IO_APICS,4,2               ## @MAX_IO_APICS
	.comm	_ir_ioapic,8,3                  ## @ir_ioapic
	.no_dead_strip	_map_ioapic_to_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_ioapic_to_ir
_map_ioapic_to_ir:                      ; @map_ioapic_to_ir
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_IO_APICS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_IO_APICS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _ir_ioapic@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ir_ioapic@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x10, x8, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x10, #-8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x10]
	cbz	x8, LBB0_2
; %bb.5:
	mov	x0, x8
	ret
LBB0_6:
	mov	x8, #0
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_IO_APICS,4,2               ; @MAX_IO_APICS
	.comm	_ir_ioapic,8,3                  ; @ir_ioapic
	.no_dead_strip	_map_ioapic_to_ir
.subsections_via_symbols
