	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _softing_fct_cmd
__softing_fct_cmd:                      ## @_softing_fct_cmd
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %eax
	movq	%rdi, %r13
	movq	_DPRAM_FCT_PARAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	8(%rdi), %rsi
	movl	%eax, %edi
	callq	_iowrite16
	movl	%r15d, %edi
	sarl	$8, %edi
	movq	8(%r13), %rax
	movq	_DPRAM_FCT_HOST@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	callq	_iowrite8
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	movl	%r15d, %edi
	callq	_iowrite8
	xorl	%eax, %eax
	callq	_wmb
	movq	_jiffies@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	callq	_ioread8
	movl	%eax, %r14d
	movq	8(%r13), %rax
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$4, %rdi
	callq	_ioread8
	movl	%eax, %ebx
	shll	$8, %ebx
	addl	%r14d, %ebx
	xorl	%eax, %eax
	callq	_rmb
	movq	_RES_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.1:
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %ebx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movq	_DPRAM_FCT_HOST@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	callq	_ioread8
	movl	%eax, %r14d
	movq	8(%r13), %rax
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$4, %rdi
	callq	_ioread8
	movl	%eax, %ebx
	shll	$8, %ebx
	addl	%r14d, %ebx
	xorl	%eax, %eax
	callq	_rmb
	movq	_RES_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
LBB0_8:
	movq	_DPRAM_FCT_RESULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%r13), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ioread16                       ## TAILCALL
LBB0_4:
	movl	%r15d, %ebx
LBB0_5:
	movq	_RES_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.9:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_ECANCELED@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_dev_alert
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPRAM_FCT_PARAM,8,3            ## @DPRAM_FCT_PARAM
	.comm	_DPRAM_FCT_HOST,4,2             ## @DPRAM_FCT_HOST
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_RES_OK,4,2                     ## @RES_OK
	.comm	_DPRAM_FCT_RESULT,8,3           ## @DPRAM_FCT_RESULT
	.comm	_RES_NONE,4,2                   ## @RES_NONE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware %s failed (%i)\n"

	.no_dead_strip	__softing_fct_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _softing_fct_cmd
__softing_fct_cmd:                      ; @_softing_fct_cmd
	.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, x3
	mov	x21, x2
	mov	x8, x1
	mov	x20, x0
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _DPRAM_FCT_PARAM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DPRAM_FCT_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x1, x9, x10, lsl #2
	mov	x0, x8
	bl	_iowrite16
	asr	w0, w21, #8
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x24, _DPRAM_FCT_HOST@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DPRAM_FCT_HOST@GOTPAGEOFF]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	add	x1, x8, #4
	bl	_iowrite8
	ldr	x8, [x20, #8]
	ldrsw	x9, [x24]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	bl	_iowrite8
	bl	_wmb
Lloh5:
	adrp	x25, _jiffies@GOTPAGE
Lloh6:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldrsw	x27, [x25]
Lloh7:
	adrp	x8, _HZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh9:
	ldrsw	x28, [x8]
	ldr	x8, [x20, #8]
	ldrsw	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_ioread8
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #4
	bl	_ioread8
	add	w23, w22, w0, lsl #8
	bl	_rmb
Lloh10:
	adrp	x26, _RES_OK@GOTPAGE
Lloh11:
	ldr	x26, [x26, _RES_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w23, w8
	b.eq	LBB0_5
; %bb.1:
	add	x22, x28, x27
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, w21
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	mov	x1, x22
	bl	_time_after
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #500
	mov	w1, #10000
	bl	_usleep_range
	ldr	x8, [x20, #8]
	ldrsw	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_ioread8
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	add	x0, x8, #4
	bl	_ioread8
	add	w23, w23, w0, lsl #8
	bl	_rmb
	ldr	w8, [x26]
	cmp	w23, w8
	b.ne	LBB0_2
LBB0_5:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _DPRAM_FCT_RESULT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DPRAM_FCT_RESULT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	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
	b	_ioread16
LBB0_6:
	mov	x23, x21
LBB0_7:
Lloh15:
	adrp	x8, _RES_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RES_NONE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	adrp	x10, _ECANCELED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _ECANCELED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w23, w8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x20]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_alert
	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	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DPRAM_FCT_PARAM,8,3            ; @DPRAM_FCT_PARAM
	.comm	_DPRAM_FCT_HOST,4,2             ; @DPRAM_FCT_HOST
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_RES_OK,4,2                     ; @RES_OK
	.comm	_DPRAM_FCT_RESULT,8,3           ; @DPRAM_FCT_RESULT
	.comm	_RES_NONE,4,2                   ; @RES_NONE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware %s failed (%i)\n"

	.no_dead_strip	__softing_fct_cmd
.subsections_via_symbols
