	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_request_uncached_firmware
_rtl_request_uncached_firmware:         ## @rtl_request_uncached_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_rtl_lookup_firmware_name
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	16(%r12), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rtl_check_firmware
	testl	%eax, %eax
	jns	LBB0_10
## %bb.6:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_release_firmware
	jmp	LBB0_7
LBB0_2:
	negl	%r15d
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %r8
	movl	%r15d, %r9d
	callq	_netif_warn
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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 patch %s (%d)\n"

	.no_dead_strip	_rtl_request_uncached_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_uncached_firmware
_rtl_request_uncached_firmware:         ; @rtl_request_uncached_firmware
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_rtl_lookup_firmware_name
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	x2, [x19, #16]
	mov	x1, x20
	bl	_request_firmware
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_check_firmware
	tbz	w0, #31, LBB0_10
; %bb.4:
	mov	x22, x0
	ldr	w0, [x21]
	bl	_release_firmware
	b	LBB0_7
LBB0_5:
	neg	w22, w22
	b	LBB0_8
LBB0_6:
	mov	x22, x0
LBB0_7:
	mov	x0, x21
	bl	_kfree
LBB0_8:
Lloh6:
	adrp	x8, _ifup@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x22
	bl	_netif_warn
LBB0_9:
	mov	x21, #0
LBB0_10:
	str	x21, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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 patch %s (%d)\n"

	.no_dead_strip	_rtl_request_uncached_firmware
.subsections_via_symbols
