	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_softing_bootloader_command     ## -- Begin function softing_bootloader_command
	.p2align	4, 0x90
_softing_bootloader_command:            ## @softing_bootloader_command
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_RES_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPRAM_RECEIPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r12), %rsi
	callq	_iowrite16
	movq	_DPRAM_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_iowrite16
	xorl	%eax, %eax
	callq	_wmb
	movq	_jiffies@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %r13
	addq	%rax, %r13
	movq	_RES_OK@GOTPCREL(%rip), %r14
	movq	_current@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DPRAM_RECEIPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	callq	_ioread16
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rmb
	cmpl	(%r14), %ebx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	(%r15), %edi
	callq	_signal_pending
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movq	_RES_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_ECANCELED@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_dev_alert
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_NONE,4,2                   ## @RES_NONE
	.comm	_DPRAM_RECEIPT,8,3              ## @DPRAM_RECEIPT
	.comm	_DPRAM_COMMAND,8,3              ## @DPRAM_COMMAND
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_RES_OK,4,2                     ## @RES_OK
	.comm	_current,4,2                    ## @current
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bootloader %s failed (%i)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_softing_bootloader_command     ; -- Begin function softing_bootloader_command
	.p2align	2
_softing_bootloader_command:            ; @softing_bootloader_command
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _RES_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RES_NONE@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x24, _DPRAM_RECEIPT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DPRAM_RECEIPT@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x8, x9, lsl #2
	bl	_iowrite16
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _DPRAM_COMMAND@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DPRAM_COMMAND@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	bl	_iowrite16
	bl	_wmb
Lloh7:
	adrp	x25, _jiffies@GOTPAGE
Lloh8:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x25]
Lloh9:
	adrp	x9, _HZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #1
	add	x21, x9, x8
Lloh12:
	adrp	x26, _RES_OK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _RES_OK@GOTPAGEOFF]
Lloh14:
	adrp	x27, _current@GOTPAGE
Lloh15:
	ldr	x27, [x27, _current@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_ioread16
	mov	x22, x0
	bl	_rmb
	ldr	w8, [x26]
	cmp	w22, w8
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #500
	mov	w1, #10000
	bl	_usleep_range
	ldr	w0, [x27]
	bl	_signal_pending
	cbz	w0, LBB0_1
LBB0_4:
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	adrp	x9, _ECANCELED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ECANCELED@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w22, w10
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x20]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_alert
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_NONE,4,2                   ; @RES_NONE
	.comm	_DPRAM_RECEIPT,8,3              ; @DPRAM_RECEIPT
	.comm	_DPRAM_COMMAND,8,3              ; @DPRAM_COMMAND
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_RES_OK,4,2                     ; @RES_OK
	.comm	_current,4,2                    ; @current
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bootloader %s failed (%i)\n"

.subsections_via_symbols
