	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_load_ucode_wait
_e100_load_ucode_wait:                  ## @e100_load_ucode_wait
	.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	%rdi, %r15
	movq	24(%rdi), %r12
	callq	_e100_request_firmware
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_1:
	movq	_e100_setup_ucode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_e100_exec_cb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_netif_err
LBB0_3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_cuc_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_e100_write_flush
	movl	$10, %edi
	callq	_udelay
	movl	$-50, %ebx
	movq	_cb_complete@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r14d
	movl	(%r13), %edi
	callq	_cpu_to_le16
	testl	%r14d, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edi
	callq	_msleep
	incl	%ebx
	jne	LBB0_4
## %bb.6:
	movq	8(%r15), %rsi
	movl	$-1, %edi
	callq	_iowrite8
	jmp	LBB0_9
LBB0_7:
	movq	8(%r15), %rsi
	movl	$-1, %edi
	callq	_iowrite8
	testl	%ebx, %ebx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movl	(%r12), %r14d
	movq	_cb_ok@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	testl	%r14d, %eax
	jne	LBB0_10
LBB0_9:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e100_setup_ucode,4,2           ## @e100_setup_ucode
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucode cmd failed with error %d\n"

	.comm	_cuc_start,4,2                  ## @cuc_start
	.comm	_cb_complete,4,2                ## @cb_complete
	.comm	_cb_ok,4,2                      ## @cb_ok
L_.str.1:                               ## @.str.1
	.asciz	"ucode load failed\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_e100_load_ucode_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_load_ucode_wait
_e100_load_ucode_wait:                  ; @e100_load_ucode_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	x21, [x0, #24]
	bl	_e100_request_firmware
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	add	sp, sp, #96
	b	_PTR_ERR_OR_ZERO
LBB0_2:
Lloh0:
	adrp	x8, _e100_setup_ucode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _e100_setup_ucode@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_e100_exec_cb
	mov	x20, x0
Lloh3:
	adrp	x22, _probe@GOTPAGE
Lloh4:
	ldr	x22, [x22, _probe@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x22]
	ldr	w2, [x19]
	str	x20, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_4:
Lloh7:
	adrp	x8, _cuc_start@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cuc_start@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_e100_write_flush
	mov	w0, #10
	bl	_udelay
	mov	w23, #-50
Lloh10:
	adrp	x24, _cb_complete@GOTPAGE
Lloh11:
	ldr	x24, [x24, _cb_complete@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x21]
	ldr	w0, [x24]
	bl	_cpu_to_le16
	tst	w0, w25
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_msleep
	adds	w23, w23, #1
	b.lo	LBB0_5
; %bb.7:
	ldr	x1, [x19, #8]
	mov	w0, #-1
	bl	_iowrite8
	b	LBB0_10
LBB0_8:
	ldr	x1, [x19, #8]
	mov	w0, #-1
	bl	_iowrite8
	cbz	w23, LBB0_10
; %bb.9:
	ldr	w21, [x21]
Lloh12:
	adrp	x8, _cb_ok@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cb_ok@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	tst	w0, w21
	b.ne	LBB0_11
LBB0_10:
	ldr	w1, [x22]
	ldr	w2, [x19]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh17:
	adrp	x8, _EPERM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_e100_setup_ucode,4,2           ; @e100_setup_ucode
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucode cmd failed with error %d\n"

	.comm	_cuc_start,4,2                  ; @cuc_start
	.comm	_cb_complete,4,2                ; @cb_complete
	.comm	_cb_ok,4,2                      ; @cb_ok
l_.str.1:                               ; @.str.1
	.asciz	"ucode load failed\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_e100_load_ucode_wait
.subsections_via_symbols
