	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_setup_bands
_b43_setup_bands:                       ## @b43_setup_bands
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %r8
	cmpl	$8279, (%rdi)                   ## imm = 0x2057
	jne	LBB0_1
## %bb.2:
	movl	4(%rdi), %eax
	movq	_b43_band_2ghz_limited@GOTPCREL(%rip), %r9
	movq	%r9, %rcx
	cmpl	$14, %eax
	je	LBB0_4
## %bb.3:
	movq	_b43_band_2GHz@GOTPCREL(%rip), %rcx
LBB0_4:
	cmpl	$9, %eax
	cmoveq	%r9, %rcx
	movq	_b43_band_5GHz_nphy@GOTPCREL(%rip), %r9
	cmoveq	_b43_band_5GHz_nphy_limited@GOTPCREL(%rip), %r9
	jmp	LBB0_5
LBB0_1:
	movq	_b43_band_5GHz_nphy@GOTPCREL(%rip), %r9
	movq	_b43_band_2GHz@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%r8), %r8
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	movq	(%r8), %rax
	movq	(%rax), %r10
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, (%r10,%rax,8)
LBB0_7:
	testl	%edx, %edx
	je	LBB0_11
## %bb.8:
	movq	8(%rdi), %rax
	movq	_B43_PHYTYPE_N@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_b43_band_5GHz_aphy@GOTPCREL(%rip), %r9
LBB0_10:
	movq	(%r8), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r9, (%rax,%rcx,8)
LBB0_11:
	movl	%esi, 16(%rdi)
	movl	%edx, 20(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_b43_band_2ghz_limited,4,2      ## @b43_band_2ghz_limited
	.comm	_b43_band_2GHz,4,2              ## @b43_band_2GHz
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_B43_PHYTYPE_N,8,3              ## @B43_PHYTYPE_N
	.comm	_b43_band_5GHz_nphy_limited,4,2 ## @b43_band_5GHz_nphy_limited
	.comm	_b43_band_5GHz_nphy,4,2         ## @b43_band_5GHz_nphy
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_b43_band_5GHz_aphy,4,2         ## @b43_band_5GHz_aphy
	.no_dead_strip	_b43_setup_bands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_setup_bands
_b43_setup_bands:                       ; @b43_setup_bands
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w11, [x0]
Lloh0:
	adrp	x9, _b43_band_5GHz_nphy@GOTPAGE
Lloh1:
	ldr	x9, [x9, _b43_band_5GHz_nphy@GOTPAGEOFF]
Lloh2:
	adrp	x10, _b43_band_2GHz@GOTPAGE
Lloh3:
	ldr	x10, [x10, _b43_band_2GHz@GOTPAGEOFF]
	mov	w12, #8279
	cmp	w11, w12
	b.ne	LBB0_2
; %bb.1:
	ldr	w11, [x0, #4]
	cmp	w11, #14
Lloh4:
	adrp	x12, _b43_band_2ghz_limited@GOTPAGE
Lloh5:
	ldr	x12, [x12, _b43_band_2ghz_limited@GOTPAGEOFF]
	ccmp	w11, #9, #4, ne
	csel	x10, x12, x10, eq
Lloh6:
	adrp	x12, _b43_band_5GHz_nphy_limited@GOTPAGE
Lloh7:
	ldr	x12, [x12, _b43_band_5GHz_nphy_limited@GOTPAGEOFF]
	cmp	w11, #9
	csel	x9, x12, x9, eq
LBB0_2:
	cbz	w1, LBB0_4
; %bb.3:
	ldr	x11, [x8]
	ldr	x11, [x11]
Lloh8:
	adrp	x12, _NL80211_BAND_2GHZ@GOTPAGE
Lloh9:
	ldr	x12, [x12, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	str	x10, [x11, x12, lsl #3]
LBB0_4:
	cbz	w2, LBB0_6
; %bb.5:
	ldr	x10, [x0, #8]
Lloh11:
	adrp	x11, _B43_PHYTYPE_N@GOTPAGE
Lloh12:
	ldr	x11, [x11, _B43_PHYTYPE_N@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
Lloh14:
	adrp	x12, _b43_band_5GHz_aphy@GOTPAGE
Lloh15:
	ldr	x12, [x12, _b43_band_5GHz_aphy@GOTPAGEOFF]
	cmp	x10, x11
	csel	x9, x9, x12, eq
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh16:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh17:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	str	x9, [x8, x10, lsl #3]
LBB0_6:
	stp	w1, w2, [x0, #16]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_b43_band_2ghz_limited,4,2      ; @b43_band_2ghz_limited
	.comm	_b43_band_2GHz,4,2              ; @b43_band_2GHz
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_B43_PHYTYPE_N,8,3              ; @B43_PHYTYPE_N
	.comm	_b43_band_5GHz_nphy_limited,4,2 ; @b43_band_5GHz_nphy_limited
	.comm	_b43_band_5GHz_nphy,4,2         ; @b43_band_5GHz_nphy
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_b43_band_5GHz_aphy,4,2         ; @b43_band_5GHz_aphy
	.no_dead_strip	_b43_setup_bands
.subsections_via_symbols
