	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_boot_information
_setup_boot_information:                ## @setup_boot_information
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	16(%r14), %rbx
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	addq	$64, %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	callq	_archive_entry_size
	movq	%rax, %r15
	cmpq	$64, %rax
	jg	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, -4160(%rbp)               ## 8-byte Spill
	movq	%r12, -4152(%rbp)               ## 8-byte Spill
	addq	$-64, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpq	$4096, %r15                     ## imm = 0x1000
	movl	$4096, %edx                     ## imm = 0x1000
	cmovbq	%r15, %rdx
	movl	(%r14), %edi
	leaq	-4144(%rbp), %rsi
	callq	_read
	movq	%rax, %r13
	testq	%rax, %rax
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r12,%rbp), %rdi
	addq	$-4144, %rdi                    ## imm = 0xEFD0
	callq	_archive_le32dec
	addq	%rax, %rbx
	addq	$4, %r12
	cmpq	%r13, %r12
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	%r13, %r15
	jg	LBB0_4
## %bb.8:
	movq	_SYSTEM_AREA_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-4144(%rbp), %rdi
	callq	_set_num_731
	leaq	-4140(%rbp), %rdi
	movq	-4160(%rbp), %r15               ## 8-byte Reload
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	callq	_set_num_731
	movl	8(%r14), %edi
	callq	_fd_boot_image_size
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	(%r15), %rax
	movl	16(%rax), %edi
	callq	_archive_entry_size
LBB0_10:
	leaq	-4136(%rbp), %rdi
	movq	%rax, %rsi
	callq	_set_num_731
	leaq	-4132(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_set_num_731
	leaq	-4128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	(%r14), %edi
	movq	(%r15), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	leaq	-4144(%rbp), %rsi
	movq	-4152(%rbp), %rdi               ## 8-byte Reload
	movl	$56, %edx
	callq	_write_to_temp
	jmp	LBB0_11
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-4152(%rbp), %rdi               ## 8-byte Reload
	movq	%r13, %rcx
LBB0_2:
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.12:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Boot file(%jd) is too small"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Can't read temporary file(%jd)"

	.comm	_SYSTEM_AREA_BLOCK,8,3          ## @SYSTEM_AREA_BLOCK
	.no_dead_strip	_setup_boot_information
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_boot_information
_setup_boot_information:                ; @setup_boot_information
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x22, [x0, #8]
	ldr	x23, [x22, #16]
	ldr	w0, [x22]
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x1, x8, #64
Lloh5:
	adrp	x24, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_lseek
	ldr	x8, [x23]
	ldr	w0, [x8, #16]
	bl	_archive_entry_size
	subs	x25, x0, #64
	b.gt	LBB0_2
; %bb.1:
	mov	x3, x0
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_11
LBB0_2:
	mov	x20, #0
	mov	w26, #4096
	mov	x27, sp
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	x25, #1, lsl #12                ; =4096
	csel	x2, x25, x26, lo
	ldr	w0, [x22]
	mov	x1, sp
	bl	_read
	mov	x21, x0
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x27, x28
	bl	_archive_le32dec
	add	x20, x0, x20
	add	x28, x28, #4
	cmp	x28, x21
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x25, x25, x21
	cmp	x25, #0
	b.gt	LBB0_3
; %bb.7:
Lloh12:
	adrp	x8, _SYSTEM_AREA_BLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYSTEM_AREA_BLOCK@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x21, sp
	mov	x0, sp
	bl	_set_num_731
	add	x0, x21, #4
	ldr	x8, [x23]
	ldr	x1, [x8, #8]
	bl	_set_num_731
	ldr	w0, [x22, #8]
	bl	_fd_boot_image_size
	mov	x1, x0
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	ldr	w0, [x8, #16]
	bl	_archive_entry_size
	mov	x1, x0
LBB0_9:
	add	x0, x21, #8
	bl	_set_num_731
	add	x0, x21, #12
	mov	x1, x20
	bl	_set_num_731
	add	x0, x21, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w0, [x22]
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x1, x8, #8
	ldr	w2, [x24]
	bl	_lseek
	mov	x1, sp
	mov	x0, x19
	mov	w2, #56
	bl	_write_to_temp
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
LBB0_11:
	bl	_archive_set_error
Lloh20:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
LBB0_12:
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Boot file(%jd) is too small"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Can't read temporary file(%jd)"

	.comm	_SYSTEM_AREA_BLOCK,8,3          ; @SYSTEM_AREA_BLOCK
	.no_dead_strip	_setup_boot_information
.subsections_via_symbols
