	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_gas_lowermatch
_dmar_gas_lowermatch:                   ## @dmar_gas_lowermatch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_DMAR_PAGE_SIZE@GOTPCREL(%rip), %r15
	movq	_rb_entry@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_RB_RIGHT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	16(%r14), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	(%r15), %rdi
	movl	8(%rax), %esi
	callq	_roundup2
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	movq	16(%r14), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dmar_gas_match_one
	testq	%rax, %rax
	jne	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	addq	(%r14), %rax
	addq	(%r15), %rax
	cmpq	%rax, 8(%rbx)
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_RB_LEFT
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dmar_gas_lowermatch
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dmar_gas_match_insert
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_PAGE_SIZE,8,3             ## @DMAR_PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rb_entry,4,2                   ## @rb_entry
	.no_dead_strip	_dmar_gas_lowermatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_gas_lowermatch
_dmar_gas_lowermatch:                   ; @dmar_gas_lowermatch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _DMAR_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMAR_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _rb_entry@GOTPAGE
Lloh3:
	ldr	x22, [x22, _rb_entry@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_RB_RIGHT
	mov	x20, x0
	cbz	x0, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x8, [x19, #16]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x21]
	add	x0, x10, x9
	ldr	w1, [x8, #8]
	bl	_roundup2
	ldp	x9, x8, [x19, #16]
	str	w0, [x8]
	ldr	x2, [x9]
	mov	x0, x19
	mov	x1, x20
	bl	_dmar_gas_match_one
	cbnz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	ldp	x9, x10, [x19]
	ldr	x11, [x21]
	add	x9, x10, x9
	add	x9, x9, x11
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_RB_LEFT
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_dmar_gas_lowermatch
	cbnz	w0, LBB0_1
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_dmar_gas_match_insert
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_PAGE_SIZE,8,3             ; @DMAR_PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rb_entry,4,2                   ; @rb_entry
	.no_dead_strip	_dmar_gas_lowermatch
.subsections_via_symbols
