	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_get_max_resolution
_efi_get_max_resolution:                ## @efi_get_max_resolution
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movl	$0, (%rdi)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_resolutions@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r15
	leaq	(%r15,%rbx), %rdi
	movq	%r13, %rsi
	callq	_efi_resolution_compare
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	(%r12), %rdi
	callq	_nitems
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_7:
	movq	%r13, %rdi
	callq	_strdup
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_5
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$120, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, (%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, (%r14)
LBB0_10:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_4:
	movl	(%r15,%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	4(%r15,%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"efi_max_resolution"

	.comm	_resolutions,8,3                ## @resolutions
	.no_dead_strip	_efi_get_max_resolution
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_get_max_resolution
_efi_get_max_resolution:                ; @efi_get_max_resolution
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	str	wzr, [x1]
	str	wzr, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x23, _resolutions@GOTPAGE
Lloh3:
	ldr	x23, [x23, _resolutions@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x24, #0
	mov	x25, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x22, x8, x24
	mov	x0, x22
	mov	x1, x21
	bl	_efi_resolution_compare
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x0, [x23]
	bl	_nitems
	add	x24, x24, #8
	cmp	x25, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	mov	x0, x21
	bl	_strdup
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
	mov	w1, #120
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
	strb	wzr, [x22], #1
	mov	x0, x21
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	str	w0, [x20]
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	str	w0, [x19]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free
LBB0_9:
	ldr	w8, [x22]
	str	w8, [x20]
	ldr	w8, [x22, #4]
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"efi_max_resolution"

	.comm	_resolutions,8,3                ; @resolutions
	.no_dead_strip	_efi_get_max_resolution
.subsections_via_symbols
