	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00lib_probe_hw_modes
_rt2x00lib_probe_hw_modes:              ## @rt2x00lib_probe_hw_modes
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ebx
	movl	4(%rsi), %edi
	movq	_SUPPORT_RATE_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	testl	%ebx, %r14d
	setne	%al
	leal	(,%rax,4), %ecx
	movq	_SUPPORT_RATE_OFDM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	testl	%ebx, %r12d
	leal	8(,%rax,4), %r15d
	cmovel	%ecx, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	orl	%r14d, %r12d
	testl	%ebx, %r12d
	je	LBB0_5
## %bb.3:
	cmpl	$2, %r15d
	movl	$1, %r12d
	cmovael	%r15d, %r12d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_rt2x00_get_rate
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rt2x00lib_rate
	incq	%rbx
	addq	$4, %r14
	cmpq	%rbx, %r12
	jne	LBB0_4
LBB0_5:
	movl	%r15d, %r12d
	cmpl	$0, 4(%r13)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_rt2x00lib_channel
	incq	%rbx
	movl	4(%r13), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_7
LBB0_8:
	movl	8(%r13), %eax
	movq	_SUPPORT_BAND_2GHZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	shlq	$5, %rdx
	leaq	(%rax,%rdx), %rsi
	movl	$14, (%rax,%rdx)
	movl	%r12d, 4(%rax,%rdx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 24(%rax,%rdx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 16(%rax,%rdx)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rsi, (%rax,%rcx,8)
	movq	(%rbx), %rax
	leaq	(%rax,%rdx), %rdi
	addq	$8, %rdi
	leaq	12(%r13), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r13), %eax
LBB0_10:
	movq	_SUPPORT_BAND_5GHZ@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.11:
	movl	4(%r13), %eax
	addl	$-14, %eax
	movq	(%rbx), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	shlq	$5, %rsi
	leaq	(%rcx,%rsi), %rdi
	movl	%eax, (%rcx,%rsi)
	addl	$-4, %r12d
	movl	%r12d, 4(%rcx,%rsi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rax
	movq	%rax, 24(%rcx,%rsi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$16, %rax
	movq	%rax, 16(%rcx,%rsi)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rdi, (%rax,%rdx,8)
	movq	(%rbx), %rax
	leaq	(%rax,%rsi), %rdi
	addq	$8, %rdi
	addq	$12, %r13
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_14
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rt2x00_err
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORT_RATE_CCK,4,2           ## @SUPPORT_RATE_CCK
	.comm	_SUPPORT_RATE_OFDM,4,2          ## @SUPPORT_RATE_OFDM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SUPPORT_BAND_2GHZ,4,2          ## @SUPPORT_BAND_2GHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_SUPPORT_BAND_5GHZ,4,2          ## @SUPPORT_BAND_5GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocation ieee80211 modes failed\n"

	.no_dead_strip	_rt2x00lib_probe_hw_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00lib_probe_hw_modes
_rt2x00lib_probe_hw_modes:              ; @rt2x00lib_probe_hw_modes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x26, [x0, #8]
Lloh0:
	adrp	x8, _SUPPORT_RATE_CCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORT_RATE_CCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w0, [x1]
	ands	w24, w8, w9
	cset	w8, ne
	lsl	w10, w8, #2
Lloh3:
	adrp	x11, _SUPPORT_RATE_OFDM@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SUPPORT_RATE_OFDM@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	ands	w25, w11, w9
	mov	w9, #8
	bfi	w9, w8, #2, #1
	csel	w21, w10, w9, eq
Lloh6:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x22, x0
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x23, x0
	orr	w8, w25, w24
	cbz	w8, LBB0_5
; %bb.3:
	mov	x24, #0
	cmp	w21, #1
	csinc	w27, w21, wzr, hi
	mov	x25, x23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_rt2x00_get_rate
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	bl	_rt2x00lib_rate
	add	x24, x24, #1
	add	x25, x25, #4
	cmp	x27, x24
	b.ne	LBB0_4
LBB0_5:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x24, #0
	mov	x25, x22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x24, #2
	ldp	x10, x9, [x20, #16]
	ldr	w1, [x9, x8]
	ldr	w2, [x10, x8]
	mov	x0, x25
	mov	x3, x24
	bl	_rt2x00lib_channel
	add	x24, x24, #1
	ldr	w8, [x20, #4]
	add	x25, x25, #4
	cmp	x24, x8
	b.lo	LBB0_7
LBB0_8:
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x9, _SUPPORT_BAND_2GHZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SUPPORT_BAND_2GHZ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	lsl	x10, x9, #5
	add	x8, x8, x10
	mov	w11, #14
	stp	w11, w21, [x8]
	stp	x23, x22, [x8, #16]
	ldr	x11, [x26]
	ldr	x11, [x11]
	str	x8, [x11, x9, lsl #3]
	ldr	x8, [x19]
	add	x8, x8, x10
	add	x0, x8, #8
	add	x1, x20, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20, #8]
LBB0_10:
Lloh14:
	adrp	x9, _SUPPORT_BAND_5GHZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SUPPORT_BAND_5GHZ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x20, #4]
	sub	w8, w8, #14
	ldr	x9, [x19]
Lloh17:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh18:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	lsl	x11, x10, #5
	add	x9, x9, x11
	sub	w12, w21, #4
	stp	w8, w12, [x9]
	add	x8, x22, #56
	add	x12, x23, #16
	stp	x12, x8, [x9, #16]
	ldr	x8, [x26]
	ldr	x8, [x8]
	str	x9, [x8, x10, lsl #3]
	ldr	x8, [x19]
	add	x8, x8, x11
	add	x0, x8, #8
	add	x1, x20, #12
	mov	w2, #4
	bl	_memcpy
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	mov	x0, x22
	bl	_kfree
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rt2x00_err
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORT_RATE_CCK,4,2           ; @SUPPORT_RATE_CCK
	.comm	_SUPPORT_RATE_OFDM,4,2          ; @SUPPORT_RATE_OFDM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SUPPORT_BAND_2GHZ,4,2          ; @SUPPORT_BAND_2GHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_SUPPORT_BAND_5GHZ,4,2          ; @SUPPORT_BAND_5GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocation ieee80211 modes failed\n"

	.no_dead_strip	_rt2x00lib_probe_hw_modes
.subsections_via_symbols
