	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_request_firmware
_rtl_request_firmware:                  ## @rtl_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	_rtl_writephy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_rtl_readphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_mac_mcu_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_mac_mcu_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_tp_to_dev
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_rtl_fw_request_firmware
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netif_warn                     ## TAILCALL
LBB0_4:
	movq	%r14, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to load firmware, out of memory\n"

	.comm	_rtl_writephy,4,2               ## @rtl_writephy
	.comm	_rtl_readphy,4,2                ## @rtl_readphy
	.comm	_mac_mcu_write,4,2              ## @mac_mcu_write
	.comm	_mac_mcu_read,4,2               ## @mac_mcu_read
	.no_dead_strip	_rtl_request_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_request_firmware
_rtl_request_firmware:                  ; @rtl_request_firmware
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_1
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh3:
	adrp	x8, _rtl_writephy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtl_writephy@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _rtl_readphy@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rtl_readphy@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh9:
	adrp	x8, _mac_mcu_write@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mac_mcu_write@GOTPAGEOFF]
Lloh11:
	adrp	x9, _mac_mcu_read@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mac_mcu_read@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	ldr	x8, [x19, #8]
	str	x8, [x0, #8]
	mov	x0, x19
	bl	_tp_to_dev
	str	w0, [x20]
	mov	x0, x20
	bl	_rtl_fw_request_firmware
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_6:
Lloh15:
	adrp	x8, _ifup@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_warn
LBB0_7:
	str	x20, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to load firmware, out of memory\n"

	.comm	_rtl_writephy,4,2               ; @rtl_writephy
	.comm	_rtl_readphy,4,2                ; @rtl_readphy
	.comm	_mac_mcu_write,4,2              ; @mac_mcu_write
	.comm	_mac_mcu_read,4,2               ; @mac_mcu_read
	.no_dead_strip	_rtl_request_firmware
.subsections_via_symbols
