	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function download_boot
_download_boot:                         ## @download_boot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_trix_boot_len@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movl	%edi, %r14d
	movl	$248, %edi
	xorl	%esi, %esi
	callq	_trix_write
	addl	$6, %r14d
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_outb
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_outb
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_outb
	movl	$26, %edi
	movl	$912, %esi                      ## imm = 0x390
	callq	_outb
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	movq	_trix_boot@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	$913, %esi                      ## imm = 0x391
	callq	_outb
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
## %bb.4:
	cmpl	$10015, %r15d                   ## imm = 0x271F
	jg	LBB0_7
LBB0_5:
	addl	$-10016, %r15d                  ## imm = 0xD8E0
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$913, %esi                      ## imm = 0x391
	callq	_outb
	incl	%r15d
	jne	LBB0_6
LBB0_7:
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_outb
	movl	$80, %edi
	movl	$912, %esi                      ## imm = 0x390
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_trix_boot_len,4,2              ## @trix_boot_len
	.comm	_trix_boot,8,3                  ## @trix_boot
	.no_dead_strip	_download_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function download_boot
_download_boot:                         ; @download_boot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _trix_boot_len@GOTPAGE
Lloh1:
	ldr	x8, [x8, _trix_boot_len@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	w20, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w0, #248
	mov	w1, #0
	bl	_trix_write
	add	w19, w19, #6
	mov	w0, #1
	mov	x1, x19
	bl	_outb
	mov	w0, #0
	mov	x1, x19
	bl	_outb
	mov	w0, #1
	mov	x1, x19
	bl	_outb
	mov	w0, #26
	mov	w1, #912
	bl	_outb
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
	lsl	x22, x20, #2
Lloh3:
	adrp	x23, _trix_boot@GOTPAGE
Lloh4:
	ldr	x23, [x23, _trix_boot@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x21]
	mov	w1, #913
	bl	_outb
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_3
; %bb.4:
	mov	w8, #10015
	cmp	w20, w8
	b.gt	LBB0_7
LBB0_5:
	mov	w8, #-10016
	add	w20, w20, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #913
	bl	_outb
	adds	w20, w20, #1
	b.lo	LBB0_6
LBB0_7:
	mov	w0, #0
	mov	x1, x19
	bl	_outb
	mov	w0, #80
	mov	w1, #912
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_outb
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_trix_boot_len,4,2              ; @trix_boot_len
	.comm	_trix_boot,8,3                  ; @trix_boot
	.no_dead_strip	_download_boot
.subsections_via_symbols
