	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_gas_match_one
_dmar_gas_match_one:                    ## @dmar_gas_match_one
	.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	%rsi, %r15
	movq	(%rdi), %rsi
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	leaq	(%rsi,%rax), %rcx
	xorl	%r14d, %r14d
	cmpq	%rdx, %rcx
	jg	LBB0_11
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	(%r15), %rdx
	movq	_DMAR_PAGE_SIZE@GOTPCREL(%rip), %r8
	movq	(%r8), %rbx
	leaq	(%rbx,%rdx), %rdi
	cmpq	%rdi, %rax
	jl	LBB0_11
## %bb.2:
	movq	8(%r13), %rdi
	addq	%rcx, %rbx
	addq	%rdi, %rbx
	addq	8(%r15), %rdx
	cmpq	%rdx, %rbx
	jg	LBB0_11
## %bb.3:
	movq	%r8, %rbx
	addq	%rax, %rdi
	movq	32(%r13), %rax
	movq	(%rax), %rdx
	callq	_dmar_test_boundary
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	8(%r13), %rdi
	movq	24(%r13), %rax
	addq	(%rax), %rdi
	movq	32(%r13), %rax
	movq	(%rax), %rsi
	addq	%rsi, %rdi
	callq	_rounddown2
	movq	%rax, %rdi
	movq	32(%r13), %rax
	movl	8(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_roundup2
	movq	8(%r13), %rdi
	addq	%rax, %rdi
	movq	(%r13), %rsi
	leaq	(%rdi,%rsi), %rdx
	cmpq	%r12, %rdx
	jg	LBB0_8
## %bb.5:
	addq	(%rbx), %rdx
	movq	8(%r15), %rcx
	addq	(%r15), %rcx
	cmpq	%rcx, %rdx
	jg	LBB0_8
## %bb.6:
	movq	32(%r13), %rcx
	movq	%rax, %rbx
	movq	(%rcx), %rdx
	callq	_dmar_test_boundary
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rcx
	movq	24(%r13), %rax
	movq	%rbx, (%rax)
	jmp	LBB0_10
LBB0_8:
	movq	_DMAR_GM_CANSPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_11
## %bb.9:
	movq	24(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	(%rax), %rcx
	movq	%rcx, (%r13)
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_PAGE_SIZE,8,3             ## @DMAR_PAGE_SIZE
	.comm	_DMAR_GM_CANSPLIT,4,2           ## @DMAR_GM_CANSPLIT
	.no_dead_strip	_dmar_gas_match_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_gas_match_one
_dmar_gas_match_one:                    ; @dmar_gas_match_one
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x1, [x0]
	add	x9, x1, x8
	cmp	x9, x2
	b.gt	LBB0_3
; %bb.1:
	ldr	x10, [x21]
Lloh0:
	adrp	x24, _DMAR_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMAR_PAGE_SIZE@GOTPAGEOFF]
	ldr	x12, [x24]
	add	x11, x12, x10
	cmp	x8, x11
	b.lt	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x11, [x0, #8]
	add	x9, x12, x9
	add	x9, x9, x11
	ldr	x12, [x21, #8]
	add	x10, x12, x10
	cmp	x9, x10
	b.le	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x20, x2
	add	x0, x11, x8
	ldr	x8, [x19, #32]
	ldr	x2, [x8]
	bl	_dmar_test_boundary
	cbnz	x0, LBB0_11
; %bb.6:
	ldp	x8, x9, [x19, #24]
	ldr	x8, [x8]
	ldr	x10, [x19, #8]
	ldr	x1, [x9]
	add	x8, x10, x8
	add	x0, x8, x1
	bl	_rounddown2
	mov	x22, x0
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #8]
	bl	_roundup2
	mov	x23, x0
	ldp	x1, x8, [x19]
	add	x0, x8, x0
	add	x8, x0, x1
	ldr	x9, [x24]
	add	x9, x8, x9
	ldp	x10, x11, [x21]
	add	x10, x11, x10
	cmp	x8, x20
	ccmp	x9, x10, #0, le
	b.gt	LBB0_9
; %bb.7:
	ldr	x8, [x19, #32]
	ldr	x2, [x8]
	bl	_dmar_test_boundary
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #24]
	str	x23, [x8]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x19, #16]
Lloh2:
	adrp	x9, _DMAR_GM_CANSPLIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMAR_GM_CANSPLIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.10:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	sub	x8, x22, x8
	str	x8, [x19]
LBB0_11:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_PAGE_SIZE,8,3             ; @DMAR_PAGE_SIZE
	.comm	_DMAR_GM_CANSPLIT,4,2           ; @DMAR_GM_CANSPLIT
	.no_dead_strip	_dmar_gas_match_one
.subsections_via_symbols
