	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function biosacpi_search_rsdp
_biosacpi_search_rsdp:                  ## @biosacpi_search_rsdp
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_18
## %bb.1:
	movl	%esi, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	je	LBB0_19
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r15
	cmpl	%r12d, %r15d
	jge	LBB0_18
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rdi
	callq	_PTOV
	movq	%rax, %rbx
	movl	(%rax), %r13d
	movq	_ACPI_SIG_RSDP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_strlen
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_RSDP_CHECKSUM_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$4, %eax
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %edx
	andl	$3, %edx
	cmpq	$12, %rsi
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	andq	$-4, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rbx,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rbx,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rbx,%rsi,8), %xmm1
	movdqu	48(%rbx,%rsi,8), %xmm3
	movdqu	64(%rbx,%rsi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rbx,%rsi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rbx,%rsi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rbx,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%rsi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	cmpq	%rax, %rcx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	(%rbx,%rcx,8), %rdx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_16
	jmp	LBB0_2
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_19:
	movq	%rbx, %rax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SIG_RSDP,4,2              ## @ACPI_SIG_RSDP
	.comm	_RSDP_CHECKSUM_LENGTH,4,2       ## @RSDP_CHECKSUM_LENGTH
	.no_dead_strip	_biosacpi_search_rsdp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function biosacpi_search_rsdp
_biosacpi_search_rsdp:                  ; @biosacpi_search_rsdp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w1, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
Lloh0:
	adrp	x25, _ACPI_SIG_RSDP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ACPI_SIG_RSDP@GOTPAGEOFF]
Lloh2:
	adrp	x26, _RSDP_CHECKSUM_LENGTH@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RSDP_CHECKSUM_LENGTH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x10, LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #16
	cmp	w24, w19
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	add	x0, x20, x24
	bl	_PTOV
	mov	x21, x0
	ldr	w22, [x0]
	ldr	w23, [x25]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strncmp
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	mov	x10, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x9, x8, #0xfffffff8
	add	x10, x21, #32
	movi.2d	v0, #0000000000000000
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x11, x11, #8
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x10, d0
	cmp	x9, x8
	b.eq	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x21, x9, lsl #3
	sub	x8, x8, x9
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x11], #8
	add	x10, x9, x10
	subs	x8, x8, #1
	b.ne	LBB0_12
	b	LBB0_2
LBB0_13:
	mov	x21, #0
LBB0_14:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SIG_RSDP,4,2              ; @ACPI_SIG_RSDP
	.comm	_RSDP_CHECKSUM_LENGTH,4,2       ; @RSDP_CHECKSUM_LENGTH
	.no_dead_strip	_biosacpi_search_rsdp
.subsections_via_symbols
