	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_gas_match_insert
_dmar_gas_match_insert:                 ## @dmar_gas_match_insert
	.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, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	addq	8(%rcx), %rax
	movq	%rax, (%rcx)
	movq	_dmar_gas_entries_tree@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	16(%rbx), %rsi
	movq	%r15, %rdx
	callq	_RB_NEXT
	movq	%rax, %r14
	movq	8(%rax), %rcx
	movq	8(%rbx), %rdx
	movq	(%rdx), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	jl	LBB0_3
## %bb.1:
	subq	8(%rdx), %rcx
	cmpq	(%rbx), %rcx
	jl	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	%rax, (%r15)
	setle	%dil
LBB0_3:
	movslq	%eax, %rsi
	callq	_KASSERT
	movq	8(%rbx), %rsi
	movq	8(%rsi), %rax
	subq	(%r15), %rax
	movq	%rax, 16(%r15)
	movq	8(%r14), %rax
	subq	(%rsi), %rax
	movq	%rax, 16(%rsi)
	movq	16(%rbx), %rdi
	callq	_dmar_gas_rb_insert
	movslq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	_DMAR_MAP_ENTRY_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rdx
	movl	%eax, 24(%rdx)
	movl	(%r13), %edi
	movq	16(%rbx), %rsi
	callq	_RB_PREV
	xorl	%r12d, %r12d
	cmpq	%r15, %rax
	sete	%r12b
	movl	(%r13), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	callq	_RB_PREV
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_KASSERT
	movl	(%r13), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	callq	_RB_NEXT
	xorl	%r15d, %r15d
	cmpq	%r14, %rax
	sete	%r15b
	movl	(%r13), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	callq	_RB_NEXT
	movl	%r15d, %edi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_KASSERT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dmar_gas_entries_tree,4,2      ## @dmar_gas_entries_tree
	.comm	_DMAR_MAP_ENTRY_MAP,4,2         ## @DMAR_MAP_ENTRY_MAP
	.no_dead_strip	_dmar_gas_match_insert
.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_insert
_dmar_gas_match_insert:                 ; @dmar_gas_match_insert
	.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	x21, x1
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	x10, [x8, #8]
	add	x9, x9, x10
	str	x9, [x8]
Lloh0:
	adrp	x22, _dmar_gas_entries_tree@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dmar_gas_entries_tree@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x1, [x19, #16]
	mov	x2, x21
	bl	_RB_NEXT
	mov	x20, x0
	ldr	x9, [x0, #8]
	ldr	x10, [x19, #8]
	ldr	x8, [x10]
	cmp	x9, x8
	b.lt	LBB0_2
; %bb.1:
	ldr	x10, [x10, #8]
	ldr	x11, [x19]
	sub	x9, x9, x10
	cmp	x9, x11
	b.ge	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x9, [x21]
	cmp	x9, x8
	cset	w0, le
LBB0_4:
	sxtw	x1, w8
	bl	_KASSERT
	ldr	x8, [x21]
	ldp	x1, x0, [x19, #8]
	ldp	x10, x9, [x1]
	sub	x8, x9, x8
	str	x8, [x21, #16]
	ldr	x8, [x20, #8]
	sub	x8, x8, x10
	str	x8, [x1, #16]
	bl	_dmar_gas_rb_insert
	ldrsw	x1, [x19]
	bl	_KASSERT
Lloh2:
	adrp	x8, _DMAR_MAP_ENTRY_MAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMAR_MAP_ENTRY_MAP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	x2, x1, [x19, #8]
	str	w8, [x2, #24]
	ldr	w0, [x22]
	bl	_RB_PREV
	cmp	x0, x21
	cset	w21, eq
	ldr	w0, [x22]
	ldp	x2, x1, [x19, #8]
	bl	_RB_PREV
	mov	x1, x0
	mov	x0, x21
	bl	_KASSERT
	ldr	w0, [x22]
	ldp	x2, x1, [x19, #8]
	bl	_RB_NEXT
	cmp	x0, x20
	cset	w20, eq
	ldr	w0, [x22]
	ldp	x2, x1, [x19, #8]
	bl	_RB_NEXT
	mov	x1, x0
	mov	x0, x20
	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
	b	_KASSERT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dmar_gas_entries_tree,4,2      ; @dmar_gas_entries_tree
	.comm	_DMAR_MAP_ENTRY_MAP,4,2         ; @DMAR_MAP_ENTRY_MAP
	.no_dead_strip	_dmar_gas_match_insert
.subsections_via_symbols
