	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_request_firmware           ## -- Begin function wil_request_firmware
	.p2align	4, 0x90
_wil_request_firmware:                  ## @wil_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_wil_to_dev
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	jmp	LBB0_9
LBB0_2:
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_wil_dbg_fw
	movq	$0, 8(%r12)
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, (%r12)
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_wil_fw_verify
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_wil_fw_process
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	addq	%rax, %r14
	subq	%rax, %rbx
	jne	LBB0_5
## %bb.12:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	testl	%r15d, %r15d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_8
	jmp	LBB0_13
LBB0_3:
	callq	_release_firmware
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_6:
	movl	%r13d, %r15d
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
LBB0_9:
	movl	%r15d, %ecx
	callq	_wil_err_fw
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load firmware %s rc %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Loading <%s>, %zu bytes\n"

L_.str.2:                               ## @.str.2
	.asciz	"Loading <%s> failed, rc %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_request_firmware           ; -- Begin function wil_request_firmware
	.p2align	2
_wil_request_firmware:                  ; @wil_request_firmware
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_wil_to_dev
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x19
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	x3, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_wil_dbg_fw
	str	xzr, [x20, #8]
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	ldr	x0, [sp, #8]
	ldr	x23, [x0]
	cbz	x23, LBB0_8
; %bb.3:
	ldr	x24, [x0, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_wil_fw_verify
	mov	x25, x0
	tbnz	w0, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	x3, x21
	bl	_wil_fw_process
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w25
	add	x24, x24, x8
	subs	x23, x23, x8
	b.ne	LBB0_4
; %bb.7:
	ldr	x0, [sp, #8]
	bl	_release_firmware
	cbnz	w22, LBB0_11
	b	LBB0_13
LBB0_8:
	bl	_release_firmware
	mov	w22, #0
	b	LBB0_13
LBB0_9:
	mov	x22, x25
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_11:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x2, x19
	mov	x3, x22
	bl	_wil_err_fw
LBB0_13:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load firmware %s rc %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Loading <%s>, %zu bytes\n"

l_.str.2:                               ; @.str.2
	.asciz	"Loading <%s> failed, rc %d\n"

.subsections_via_symbols
