	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_request_firmware
_e100_request_firmware:                 ## @e100_request_firmware
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	%rax, -40(%rbp)
	movq	_ich@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	movq	_mac_82559_D101M@GOTPCREL(%rip), %rcx
	movb	$1, %r12b
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.3:
	movq	_FIRMWARE_D101M@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	movq	_mac_82559_D101S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_6
## %bb.5:
	movq	_FIRMWARE_D101S@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	movq	_mac_82551_F@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	_FIRMWARE_D102E@GOTPCREL(%rip), %rcx
	cmpq	(%rsi), %rdx
	je	LBB0_9
## %bb.7:
	movq	_mac_82551_10@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_1
LBB0_9:
	movq	(%rcx), %r14
	testq	%rax, %rax
	je	LBB0_16
LBB0_10:
	movl	(%rax), %r9d
	movq	_UCODE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(,%rcx,4), %rdx
	leal	3(%rdx), %esi
	cmpl	%esi, %r9d
	jne	LBB0_15
## %bb.11:
	movq	8(%rax), %rsi
	movl	(%rsi,%rdx,4), %r9d
	movl	%edx, %edi
	orl	$1, %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %r10d
	orl	$2, %edx
	movslq	%edx, %rdx
	movl	(%rsi,%rdx,4), %r11d
	cmpl	%ecx, %r9d
	jge	LBB0_19
## %bb.12:
	cmpl	%ecx, %r10d
	jge	LBB0_19
## %bb.13:
	cmpl	%ecx, %r11d
	jge	LBB0_19
## %bb.14:
	movq	%rax, 16(%rbx)
	jmp	LBB0_22
LBB0_15:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.2(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_20
LBB0_16:
	movq	32(%rbx), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_23
## %bb.17:
	movl	%eax, %r15d
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	testb	%r12b, %r12b
	je	LBB0_24
## %bb.18:
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %r8
	movl	%r15d, %r9d
	callq	_netif_info
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.3(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %r8
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	callq	_netif_err
	addq	$16, %rsp
LBB0_20:
	movq	-40(%rbp), %rdi
	callq	_release_firmware
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %edi
	callq	_ERR_PTR
LBB0_22:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-40(%rbp), %rax
	jmp	LBB0_10
LBB0_24:
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %r8
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ich,4,2                        ## @ich
	.comm	_mac_82559_D101M,8,3            ## @mac_82559_D101M
	.comm	_FIRMWARE_D101M,8,3             ## @FIRMWARE_D101M
	.comm	_mac_82559_D101S,8,3            ## @mac_82559_D101S
	.comm	_FIRMWARE_D101S,8,3             ## @FIRMWARE_D101S
	.comm	_mac_82551_F,8,3                ## @mac_82551_F
	.comm	_mac_82551_10,8,3               ## @mac_82551_10
	.comm	_FIRMWARE_D102E,8,3             ## @FIRMWARE_D102E
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load firmware \"%s\": %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"CPUSaver disabled. Needs \"%s\": %d\n"

	.comm	_UCODE_SIZE,4,2                 ## @UCODE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Firmware \"%s\" has wrong size %zu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" has bogus offset values (0x%x,0x%x,0x%x)\n"

	.no_dead_strip	_e100_request_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_request_firmware
_e100_request_firmware:                 ; @e100_request_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	str	x0, [sp, #24]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ich@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ich@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	x0, #0
	b	LBB0_19
LBB0_2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _mac_82559_D101M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mac_82559_D101M@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #1
Lloh6:
	adrp	x8, _FIRMWARE_D101M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIRMWARE_D101M@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
	cbnz	x0, LBB0_12
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x9, _mac_82559_D101S@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mac_82559_D101S@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w22, #1
Lloh12:
	adrp	x8, _FIRMWARE_D101S@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FIRMWARE_D101S@GOTPAGEOFF]
Lloh14:
	ldr	x20, [x8]
	cbnz	x0, LBB0_12
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x9, _mac_82551_F@GOTPAGE
Lloh16:
	ldr	x9, [x9, _mac_82551_F@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _mac_82551_10@GOTPAGE
Lloh19:
	ldr	x10, [x10, _mac_82551_10@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_1
; %bb.7:
	mov	w22, #0
Lloh21:
	adrp	x8, _FIRMWARE_D102E@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FIRMWARE_D102E@GOTPAGEOFF]
Lloh23:
	ldr	x20, [x8]
	cbnz	x0, LBB0_12
LBB0_8:
	ldr	x2, [x19, #32]
	add	x0, sp, #24
	mov	x1, x20
	bl	_request_firmware
	cbz	w0, LBB0_11
; %bb.9:
	mov	x21, x0
Lloh24:
	adrp	x8, _probe@GOTPAGE
Lloh25:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	tbz	w22, #0, LBB0_20
; %bb.10:
Lloh27:
	adrp	x3, l_.str.1@PAGE
Lloh28:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x21
	bl	_netif_info
	b	LBB0_1
LBB0_11:
	ldr	x0, [sp, #24]
LBB0_12:
	ldr	w5, [x0]
Lloh29:
	adrp	x8, _UCODE_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UCODE_SIZE@GOTPAGEOFF]
Lloh31:
	ldrsw	x8, [x8]
	lsl	x9, x8, #2
	orr	w10, w9, #0x3
	cmp	w5, w10
	b.ne	LBB0_15
; %bb.13:
	ldr	x10, [x0, #8]
	ldr	w5, [x10, x9, lsl #2]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sbfiz	x11, x9, #2, #32
	orr	x9, x11, #0x4
	ldr	w9, [x10, x9]
	orr	x11, x11, #0x8
	ldr	w10, [x10, x11]
	cmp	w5, w8
	ccmp	w9, w8, #0, lt
	ccmp	w10, w8, #0, lt
	b.lt	LBB0_18
; %bb.14:
Lloh32:
	adrp	x8, _probe@GOTPAGE
Lloh33:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	stp	x9, x10, [sp]
Lloh35:
	adrp	x3, l_.str.3@PAGE
Lloh36:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh37:
	adrp	x8, _probe@GOTPAGE
Lloh38:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
Lloh40:
	adrp	x3, l_.str.2@PAGE
Lloh41:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	x4, x20
	bl	_netif_err
	ldr	x0, [sp, #24]
	bl	_release_firmware
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	bl	_ERR_PTR
	b	LBB0_19
LBB0_18:
	str	x0, [x19, #16]
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
Lloh45:
	adrp	x3, l_.str@PAGE
Lloh46:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x21
	bl	_netif_err
	mov	x0, x21
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ich,4,2                        ; @ich
	.comm	_mac_82559_D101M,8,3            ; @mac_82559_D101M
	.comm	_FIRMWARE_D101M,8,3             ; @FIRMWARE_D101M
	.comm	_mac_82559_D101S,8,3            ; @mac_82559_D101S
	.comm	_FIRMWARE_D101S,8,3             ; @FIRMWARE_D101S
	.comm	_mac_82551_F,8,3                ; @mac_82551_F
	.comm	_mac_82551_10,8,3               ; @mac_82551_10
	.comm	_FIRMWARE_D102E,8,3             ; @FIRMWARE_D102E
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load firmware \"%s\": %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"CPUSaver disabled. Needs \"%s\": %d\n"

	.comm	_UCODE_SIZE,4,2                 ; @UCODE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Firmware \"%s\" has wrong size %zu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" has bogus offset values (0x%x,0x%x,0x%x)\n"

	.no_dead_strip	_e100_request_firmware
.subsections_via_symbols
