	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function relax_max_res
_relax_max_res:                         ## @relax_max_res
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %r14d
	movq	8(%rdi), %rax
	movl	(%rax), %r15d
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.2:
	movl	%r14d, %edi
	callq	_IS_SMALL
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%r15d, %edi
	callq	_IS_SMALL
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_min
	movl	%eax, %r14d
	jmp	LBB0_21
LBB0_5:
	movl	%r14d, %edi
	callq	_IS_BIG
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%r15d, %edi
	callq	_IS_BIG
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_max
	movl	%eax, %r14d
	jmp	LBB0_21
LBB0_8:
	xorl	%edi, %edi
	callq	_assert
                                        ## implicit-def: $r14d
	jmp	LBB0_21
LBB0_9:
	movl	%r14d, %edi
	callq	_IS_SMALL
	testl	%eax, %eax
	jne	LBB0_21
## %bb.10:
	movl	%r15d, %edi
	callq	_IS_SMALL
	testl	%eax, %eax
	jne	LBB0_11
## %bb.15:
	movl	%r14d, %edi
	callq	_IS_GRAY
	testl	%eax, %eax
	jne	LBB0_20
## %bb.16:
	movl	%r15d, %edi
	callq	_IS_GRAY
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	_INFTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %r14d
	movl	$-2, %ecx
	subl	%r14d, %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	notl	%ecx
	movl	%ecx, %r14d
	jmp	LBB0_21
LBB0_12:
	movl	%r14d, %edi
	callq	_IS_BIG
	testl	%eax, %eax
	jne	LBB0_21
## %bb.13:
	movl	%r15d, %edi
	callq	_IS_BIG
	testl	%eax, %eax
	je	LBB0_18
LBB0_11:
	movl	%r15d, %r14d
	jmp	LBB0_21
LBB0_18:
	movl	%r14d, %edi
	callq	_IS_GRAY
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movl	%r15d, %edi
	callq	_IS_GRAY
	testl	%eax, %eax
	je	LBB0_22
LBB0_20:
	movq	_GRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_21:
	movl	%r14d, 4(%rbx)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	8(%rax), %rax
	addq	8(%rcx), %rax
	movq	%rax, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	addl	%r14d, %r15d
	movq	_INFTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	cmovgel	%eax, %r15d
	movl	%r15d, %r14d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAY,4,2                       ## @GRAY
	.comm	_INFTY,4,2                      ## @INFTY
	.no_dead_strip	_relax_max_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function relax_max_res
_relax_max_res:                         ; @relax_max_res
	.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	x19, x0
	ldp	x9, x8, [x0, #8]
	ldr	w20, [x8]
	ldr	w21, [x9]
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_IS_SMALL
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x21
	bl	_IS_SMALL
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_min
	mov	x20, x0
	b	LBB0_20
LBB0_5:
	mov	x0, x20
	bl	_IS_BIG
	cbz	w0, LBB0_14
; %bb.6:
	mov	x0, x21
	bl	_IS_BIG
	cbz	w0, LBB0_14
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_max
	mov	x20, x0
	b	LBB0_20
LBB0_8:
	mov	w0, #0
	bl	_assert
                                        ; implicit-def: $w20
	b	LBB0_20
LBB0_9:
	mov	x0, x20
	bl	_IS_SMALL
	cbnz	w0, LBB0_20
; %bb.10:
	mov	x0, x21
	bl	_IS_SMALL
	cbnz	w0, LBB0_16
; %bb.11:
	mov	x0, x20
	bl	_IS_GRAY
	cbnz	w0, LBB0_19
; %bb.12:
	mov	x0, x21
	bl	_IS_GRAY
	cbnz	w0, LBB0_19
; %bb.13:
Lloh0:
	adrp	x8, _INFTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFTY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #-2
	add	w10, w20, w21
	sub	w9, w9, w10
	cmp	w8, w9
	csel	w8, w8, w9, lt
	mvn	w20, w8
	b	LBB0_20
LBB0_14:
	mov	x0, x20
	bl	_IS_BIG
	cbnz	w0, LBB0_20
; %bb.15:
	mov	x0, x21
	bl	_IS_BIG
	cbz	w0, LBB0_17
LBB0_16:
	mov	x20, x21
	b	LBB0_20
LBB0_17:
	mov	x0, x20
	bl	_IS_GRAY
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_IS_GRAY
	cbz	w0, LBB0_21
LBB0_19:
Lloh3:
	adrp	x8, _GRAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRAY@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_20:
	str	w20, [x19, #4]
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x9, #8]
	add	x8, x9, x8
	str	x8, [x19, #24]
	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
LBB0_21:
Lloh6:
	adrp	x8, _INFTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INFTY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w21, w20
	cmp	w9, w8
	csel	w20, w9, w8, lt
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAY,4,2                       ; @GRAY
	.comm	_INFTY,4,2                      ; @INFTY
	.no_dead_strip	_relax_max_res
.subsections_via_symbols
