	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madt_find_cpu
_madt_find_cpu:                         ## @madt_find_cpu
	.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_apic_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_lapics@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rax
	addq	$8, %rcx
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	addq	$16, %rcx
	cmpq	%rdx, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, -8(%rcx)
	jne	LBB0_5
## %bb.4:
	movq	%rdx, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_apic_id,4,2                ## @max_apic_id
	.comm	_lapics,8,3                     ## @lapics
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_madt_find_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madt_find_cpu
_madt_find_cpu:                         ; @madt_find_cpu
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _max_apic_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_apic_id@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_6
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x10, _lapics@GOTPAGE
Lloh4:
	ldr	x10, [x10, _lapics@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x9, #1
	add	x10, x10, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x0
	b.ne	LBB0_2
; %bb.5:
	mov	w0, #0
	str	x8, [x1]
	ret
LBB0_6:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_max_apic_id,4,2                ; @max_apic_id
	.comm	_lapics,8,3                     ; @lapics
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_madt_find_cpu
.subsections_via_symbols
