	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResolveCminCmaxDuringDecoding  ## -- Begin function ResolveCminCmaxDuringDecoding
	.p2align	4, 0x90
_ResolveCminCmaxDuringDecoding:         ## @ResolveCminCmaxDuringDecoding
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_BufferIsLocal
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	leaq	-52(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movl	%r15d, %edi
	callq	_BufferGetTag
	movq	-88(%rbp), %rax
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	-80(%rbp), %r15
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	xorl	%edi, %edi
	cmpq	%rax, %r15
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ItemPointerCopy
	movq	_HASH_FIND@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_UpdateLogicalMappings
	movl	(%r15), %edx
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	4(%rax), %ecx
	movl	%ecx, (%rdx)
LBB0_4:
	movl	$1, %ebx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_6:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAIN_FORKNUM,8,3               ## @MAIN_FORKNUM
	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResolveCminCmaxDuringDecoding  ; -- Begin function ResolveCminCmaxDuringDecoding
	.p2align	2
_ResolveCminCmaxDuringDecoding:         ; @ResolveCminCmaxDuringDecoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	add	x25, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x24
	bl	_BufferIsLocal
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	orr	x1, x25, #0x4
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x24
	bl	_BufferGetTag
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _MAIN_FORKNUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAIN_FORKNUM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x25, [sp, #8]
	add	x24, x23, #4
	mov	x0, x24
	bl	_ItemPointerGetBlockNumber
	cmp	x25, x0
	cset	w0, eq
	bl	_Assert
	add	x1, sp, #24
	mov	x0, x24
	bl	_ItemPointerCopy
Lloh3:
	adrp	x24, _HASH_FIND@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HASH_FIND@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x1, sp, #24
	mov	x0, x21
	mov	x3, #0
	bl	_hash_search
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_UpdateLogicalMappings
	ldr	w2, [x24]
	add	x1, sp, #24
	mov	x0, x21
	mov	x3, #0
	bl	_hash_search
	cbz	x0, LBB0_7
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w8, [x0, #4]
	str	w8, [x20]
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w8, [x0]
	str	w8, [x19]
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAIN_FORKNUM,8,3               ; @MAIN_FORKNUM
	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
.subsections_via_symbols
