	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00lib_request_firmware
_rt2x00lib_request_firmware:            ## @rt2x00lib_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rdi
	callq	_wiphy_dev
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_rt2x00_info
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_err
	jmp	LBB0_18
LBB0_1:
	movq	_DRV_PROJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movq	-32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movslq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	movl	-16(%rcx,%rax,4), %edx
	movl	-12(%rcx,%rax,4), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_info
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rax
	movq	8(%rax), %rdx
	movslq	(%rax), %rax
	movl	-16(%rdx,%rax,4), %ecx
	movl	-12(%rdx,%rax,4), %r8d
	leaq	L_.str.5(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	-32(%rbp), %rcx
	movq	8(%rcx), %rsi
	movl	(%rcx), %edx
	movq	%r14, %rdi
	callq	*8(%rax)
	cmpl	$129, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$130, %eax
	je	LBB0_15
## %bb.10:
	cmpl	$131, %eax
	jne	LBB0_14
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_err
	movq	-32(%rbp), %rdi
	callq	_release_firmware
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.8(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_err
	jmp	LBB0_16
LBB0_15:
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_rt2x00_err
LBB0_16:
	movq	-32(%rbp), %rdi
	callq	_release_firmware
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid firmware filename\nPlease file bug report to %s\n"

	.comm	_DRV_PROJECT,4,2                ## @DRV_PROJECT
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Loading firmware file '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to request Firmware\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to read Firmware\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.4:                               ## @.str.4
	.asciz	"Firmware detected - version: %d.%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d.%d"

L_.str.6:                               ## @.str.6
	.asciz	"Firmware checksum error\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid firmware file length (len=%zu)\n"

L_.str.8:                               ## @.str.8
	.asciz	"Current firmware does not support detected chipset\n"

	.no_dead_strip	_rt2x00lib_request_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00lib_request_firmware
_rt2x00lib_request_firmware:            ; @rt2x00lib_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	x8, [x0, #16]
	ldr	x0, [x8]
	bl	_wiphy_dev
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_info
	add	x0, sp, #24
	mov	x1, x21
	mov	x2, x20
	bl	_request_firmware
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_err
	b	LBB0_14
LBB0_3:
Lloh4:
	adrp	x8, _DRV_PROJECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRV_PROJECT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	ldr	x9, [sp, #24]
	cbz	x9, LBB0_11
; %bb.5:
	ldr	w8, [x9]
	cbz	w8, LBB0_11
; %bb.6:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_11
; %bb.7:
	sub	w10, w8, #4
	sub	w8, w8, #3
	ldr	w10, [x9, w10, sxtw #2]
	ldr	w8, [x9, w8, sxtw #2]
	stp	x10, x8, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_info
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
	ldr	x9, [x8, #8]
	ldr	w8, [x8]
	sub	w10, w8, #4
	ldr	w3, [x9, w10, sxtw #2]
	sub	w8, w8, #3
	ldr	w4, [x9, w8, sxtw #2]
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [sp, #24]
	ldr	x1, [x9, #8]
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	cmp	w0, #129
	b.eq	LBB0_15
; %bb.8:
	cmp	w0, #130
	b.eq	LBB0_16
; %bb.9:
	cmp	w0, #131
	b.ne	LBB0_17
; %bb.10:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_rt2x00_err
	ldr	x0, [sp, #24]
	bl	_release_firmware
Lloh19:
	adrp	x8, _ENOENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x20
	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_15:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_16:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_17:
	mov	w20, #0
	ldr	x8, [sp, #24]
	str	x8, [x19]
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid firmware filename\nPlease file bug report to %s\n"

	.comm	_DRV_PROJECT,4,2                ; @DRV_PROJECT
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Loading firmware file '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to request Firmware\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to read Firmware\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.4:                               ; @.str.4
	.asciz	"Firmware detected - version: %d.%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d.%d"

l_.str.6:                               ; @.str.6
	.asciz	"Firmware checksum error\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid firmware file length (len=%zu)\n"

l_.str.8:                               ; @.str.8
	.asciz	"Current firmware does not support detected chipset\n"

	.no_dead_strip	_rt2x00lib_request_firmware
.subsections_via_symbols
