	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_setup_modes
_b43legacy_setup_modes:                 ## @b43legacy_setup_modes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	$0, (%rdi)
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rcx
	movq	(%rcx), %r8
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	_b43legacy_band_2GHz_BPHY@GOTPCREL(%rip), %rcx
	movq	%rcx, (%r8,%rsi,8)
	movq	_B43legacy_PHYMODE_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	testl	%edx, %edx
	je	LBB0_5
LBB0_4:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_b43legacy_band_2GHz_GPHY@GOTPCREL(%rip), %rsi
	movq	%rsi, (%rax,%rdx,8)
	movq	_B43legacy_PHYMODE_G@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_b43legacy_band_2GHz_BPHY,4,2   ## @b43legacy_band_2GHz_BPHY
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_B43legacy_PHYMODE_B,4,2        ## @B43legacy_PHYMODE_B
	.comm	_b43legacy_band_2GHz_GPHY,4,2   ## @b43legacy_band_2GHz_GPHY
	.comm	_B43legacy_PHYMODE_G,4,2        ## @B43legacy_PHYMODE_G
	.no_dead_strip	_b43legacy_setup_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_setup_modes
_b43legacy_setup_modes:                 ; @b43legacy_setup_modes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	str	wzr, [x0]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	x10, [x8]
	ldr	x10, [x10]
	ldr	x11, [x9]
Lloh2:
	adrp	x12, _b43legacy_band_2GHz_BPHY@GOTPAGE
Lloh3:
	ldr	x12, [x12, _b43legacy_band_2GHz_BPHY@GOTPAGEOFF]
	str	x12, [x10, x11, lsl #3]
Lloh4:
	adrp	x10, _B43legacy_PHYMODE_B@GOTPAGE
Lloh5:
	ldr	x10, [x10, _B43legacy_PHYMODE_B@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	str	w10, [x0]
	cbz	w2, LBB0_3
LBB0_2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x9]
Lloh7:
	adrp	x11, _b43legacy_band_2GHz_GPHY@GOTPAGE
Lloh8:
	ldr	x11, [x11, _b43legacy_band_2GHz_GPHY@GOTPAGEOFF]
	str	x11, [x8, x9, lsl #3]
Lloh9:
	adrp	x8, _B43legacy_PHYMODE_G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43legacy_PHYMODE_G@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x0]
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	mov	w10, #0
	cbnz	w2, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_b43legacy_band_2GHz_BPHY,4,2   ; @b43legacy_band_2GHz_BPHY
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_B43legacy_PHYMODE_B,4,2        ; @B43legacy_PHYMODE_B
	.comm	_b43legacy_band_2GHz_GPHY,4,2   ; @b43legacy_band_2GHz_GPHY
	.comm	_B43legacy_PHYMODE_G,4,2        ; @B43legacy_PHYMODE_G
	.no_dead_strip	_b43legacy_setup_modes
.subsections_via_symbols
