	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_set_supported_band
_rtw_set_supported_band:                ## @rtw_set_supported_band
	.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
	pushq	%rax
	.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, %r15
	movq	8(%rdi), %r14
	movl	(%rsi), %eax
	movq	_RTW_BAND_2G@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rtw_band_2ghz@GOTPCREL(%rip), %rdi
	movl	$8, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 16(%r13)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_rtw_init_ht_cap
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movl	(%r13), %eax
LBB0_5:
	movq	_RTW_BAND_5G@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rtw_band_5ghz@GOTPCREL(%rip), %rdi
	movl	$8, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r12
	cmpq	$0, 16(%r13)
	je	LBB0_9
## %bb.8:
	leaq	4(%r12), %rsi
	movq	%r14, %rdi
	callq	_rtw_init_ht_cap
LBB0_9:
	cmpq	$0, 8(%r13)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rtw_init_vht_cap
LBB0_11:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r12, (%rax,%rcx,8)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_BAND_2G,4,2                ## @RTW_BAND_2G
	.comm	_rtw_band_2ghz,4,2              ## @rtw_band_2ghz
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_RTW_BAND_5G,4,2                ## @RTW_BAND_5G
	.comm	_rtw_band_5ghz,4,2              ## @rtw_band_5ghz
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set supported band\n"

	.no_dead_strip	_rtw_set_supported_band
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_set_supported_band
_rtw_set_supported_band:                ; @rtw_set_supported_band
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _RTW_BAND_2G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTW_BAND_2G@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w2, [x23]
Lloh5:
	adrp	x0, _rtw_band_2ghz@GOTPAGE
Lloh6:
	ldr	x0, [x0, _rtw_band_2ghz@GOTPAGEOFF]
	mov	w1, #8
	bl	_kmemdup
	cbz	x0, LBB0_13
; %bb.2:
	mov	x22, x0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	add	x1, x22, #4
	mov	x0, x20
	bl	_rtw_init_ht_cap
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	x22, [x8, x9, lsl #3]
	ldr	w8, [x21]
LBB0_5:
Lloh10:
	adrp	x9, _RTW_BAND_5G@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RTW_BAND_5G@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
	ldr	w2, [x23]
Lloh13:
	adrp	x0, _rtw_band_5ghz@GOTPAGE
Lloh14:
	ldr	x0, [x0, _rtw_band_5ghz@GOTPAGEOFF]
	mov	w1, #8
	bl	_kmemdup
	cbz	x0, LBB0_13
; %bb.7:
	mov	x22, x0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.8:
	add	x1, x22, #4
	mov	x0, x20
	bl	_rtw_init_ht_cap
LBB0_9:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x22
	bl	_rtw_init_vht_cap
LBB0_11:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x22, [x8, x9, lsl #3]
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rtw_err
	mov	x0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_BAND_2G,4,2                ; @RTW_BAND_2G
	.comm	_rtw_band_2ghz,4,2              ; @rtw_band_2ghz
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_RTW_BAND_5G,4,2                ; @RTW_BAND_5G
	.comm	_rtw_band_5ghz,4,2              ; @rtw_band_5ghz
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set supported band\n"

	.no_dead_strip	_rtw_set_supported_band
.subsections_via_symbols
