	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_fw_do_work
_rtl_fw_do_work:                        ## @rtl_fw_do_work
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -32(%rbp)
	movq	%rsi, %rdi
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movq	%r15, %rdi
	addq	$44, %rdi
	callq	_complete
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_4:
	movq	(%rbx), %rdx
	cmpq	(%r15), %rdx
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	-32(%rbp), %rdi
	jmp	LBB0_9
LBB0_1:
	movq	32(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movl	40(%r15), %edx
	leaq	-32(%rbp), %rdi
	callq	_request_firmware
	movl	%eax, %ebx
	movq	32(%r15), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movq	$0, (%r15)
	jmp	LBB0_10
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	movl	24(%r15), %edi
	movl	8(%rbx), %esi
	callq	_memcpy
	movq	-32(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_9
LBB0_7:
	movl	28(%r15), %edi
	movl	8(%rbx), %esi
	callq	_memcpy
	movq	-32(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%rax, 8(%r15)
LBB0_9:
	callq	_release_firmware
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-32(%rbp), %rbx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware callback routine entered!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Loading alternative firmware %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Selected firmware is not available\n"

L_.str.3:                               ## @.str.3
	.asciz	"Firmware is too big!\n"

	.no_dead_strip	_rtl_fw_do_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_fw_do_work
_rtl_fw_do_work:                        ; @rtl_fw_do_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x0
	str	x0, [sp, #8]
	mov	x0, x1
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	add	x0, x19, #44
	bl	_complete
	cbz	x21, LBB0_3
LBB0_1:
	ldr	x2, [x21]
	ldr	x8, [x19]
	cmp	x2, x8
	b.le	LBB0_6
; %bb.2:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	ldr	x0, [sp, #8]
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	w2, [x19, #40]
	add	x0, sp, #8
	bl	_request_firmware
	mov	x21, x0
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	cbz	w21, LBB0_11
LBB0_5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	str	xzr, [x19]
	b	LBB0_10
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	ldr	w0, [x19, #24]
	ldr	w1, [x21, #8]
	bl	_memcpy
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	str	x8, [x19, #16]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #28]
	ldr	w1, [x21, #8]
	bl	_memcpy
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	str	x8, [x19, #8]
LBB0_9:
	bl	_release_firmware
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	x21, [sp, #8]
	b	LBB0_1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware callback routine entered!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Loading alternative firmware %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Selected firmware is not available\n"

l_.str.3:                               ; @.str.3
	.asciz	"Firmware is too big!\n"

	.no_dead_strip	_rtl_fw_do_work
.subsections_via_symbols
