	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_default_radio_attenuation ## -- Begin function b43legacy_default_radio_attenuation
	.p2align	4, 0x90
_b43legacy_default_radio_attenuation:   ## @b43legacy_default_radio_attenuation
	.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
	movl	8(%rdi), %eax
	cmpl	$8272, %eax                     ## imm = 0x2050
	je	LBB0_3
## %bb.1:
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmpl	$8275, %eax                     ## imm = 0x2053
	jne	LBB0_25
## %bb.2:
	cmpl	$1, 16(%r14)
	movl	$6, %eax
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmovel	%eax, %ebx
	jmp	LBB0_25
LBB0_3:
	movl	16(%r14), %eax
	movl	$5, %ebx
	decl	%eax
	cmpl	$7, %eax
	ja	LBB0_25
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movl	$5, %ebx
	jmpq	*%rax
LBB0_12:
	movl	$1, %ebx
	jmp	LBB0_25
LBB0_6:
	movl	12(%r14), %r15d
	movq	_B43legacy_PHYTYPE_G@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_is_bcm_board_vendor
	cmpl	%ebx, %r15d
	jne	LBB0_21
## %bb.7:
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	$1057, 8(%rax)                  ## imm = 0x421
	jne	LBB0_10
## %bb.9:
	movl	$3, %ebx
	cmpl	$29, 4(%rax)
	jg	LBB0_25
LBB0_10:
	movq	%r14, %rdi
	callq	_is_bcm_board_vendor
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	$3, %ebx
	cmpl	$1046, 8(%rax)                  ## imm = 0x416
	je	LBB0_25
	jmp	LBB0_12
LBB0_13:
	movl	12(%r14), %eax
	movq	_B43legacy_PHYTYPE_G@GOTPCREL(%rip), %rcx
	movl	$6, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.14:
	movq	%r14, %rdi
	callq	_is_bcm_board_vendor
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	$1057, 8(%rax)                  ## imm = 0x421
	jne	LBB0_17
## %bb.16:
	movl	$3, %ebx
	cmpl	$29, 4(%rax)
	jg	LBB0_25
LBB0_17:
	movq	%r14, %rdi
	callq	_is_bcm_board_vendor
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	cmpl	$1046, 8(%rcx)                  ## imm = 0x416
	movl	$5, %ebx
	je	LBB0_25
LBB0_19:
	xorl	%ebx, %ebx
	cmpl	$17184, (%rcx)                  ## imm = 0x4320
	sete	%bl
	addl	$3, %ebx
	jmp	LBB0_25
LBB0_20:
	movl	$26, %ebx
	jmp	LBB0_25
LBB0_21:
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	$1057, 8(%rax)                  ## imm = 0x421
	jne	LBB0_24
## %bb.23:
	movl	$7, %ebx
	cmpl	$29, 4(%rax)
	jg	LBB0_25
LBB0_24:
	movl	$6, %ebx
LBB0_25:
	movq	%r14, %rdi
	callq	_is_bcm_board_vendor
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	$1057, 8(%rax)                  ## imm = 0x421
	jne	LBB0_29
## %bb.27:
	movl	4(%rax), %ecx
	movl	$2, %eax
	cmpl	$67, %ecx
	jl	LBB0_30
## %bb.28:
	movl	$3, %eax
	cmpl	$81, %ecx
	jb	LBB0_30
LBB0_29:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	movl	$5, %eax
	cmovnel	%ebx, %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_25
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_B43legacy_PHYTYPE_G,4,2        ## @B43legacy_PHYTYPE_G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_default_radio_attenuation ; -- Begin function b43legacy_default_radio_attenuation
	.p2align	2
_b43legacy_default_radio_attenuation:   ; @b43legacy_default_radio_attenuation
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w8, [x0, #8]
	mov	w9, #8272
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.1:
	mov	w9, #8275
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
	mov	w9, #65535
	mov	w10, #6
	cmp	w8, #1
	csel	w20, w10, w9, eq
	b	LBB0_7
LBB0_3:
	ldr	w8, [x19, #16]
	mov	w20, #5
	sub	w8, w8, #1
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #65535
LBB0_7:
	mov	x0, x19
	bl	_is_bcm_board_vendor
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	cmp	w9, #1057
	b.ne	LBB0_13
; %bb.9:
	ldr	w8, [x8, #4]
	cmp	w8, #67
	b.ge	LBB0_11
; %bb.10:
	mov	w0, #2
	b	LBB0_14
LBB0_11:
	cmp	w8, #81
	b.hs	LBB0_13
; %bb.12:
	mov	w0, #3
	b	LBB0_14
LBB0_13:
	mov	w8, #65535
	mov	w9, #5
	cmp	w20, w8
	csel	w0, w9, w20, eq
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w20, [x19, #12]
Lloh2:
	adrp	x8, _B43legacy_PHYTYPE_G@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43legacy_PHYTYPE_G@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_is_bcm_board_vendor
	cmp	w20, w21
	b.ne	LBB0_27
; %bb.16:
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	cmp	w9, #1057
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x8, #4]
	cmp	w8, #29
	b.gt	LBB0_25
LBB0_19:
	mov	x0, x19
	bl	_is_bcm_board_vendor
	cbz	x0, LBB0_5
; %bb.20:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	cmp	w8, #1046
	b.eq	LBB0_25
	b	LBB0_5
LBB0_21:
	ldr	w8, [x19, #12]
Lloh5:
	adrp	x9, _B43legacy_PHYTYPE_G@GOTPAGE
Lloh6:
	ldr	x9, [x9, _B43legacy_PHYTYPE_G@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_31
; %bb.22:
	mov	x0, x19
	bl	_is_bcm_board_vendor
	cbz	x0, LBB0_32
; %bb.23:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	cmp	w9, #1057
	b.ne	LBB0_32
; %bb.24:
	ldr	w8, [x8, #4]
	cmp	w8, #29
	b.le	LBB0_32
LBB0_25:
	mov	w20, #3
	b	LBB0_7
LBB0_26:
	mov	w20, #26
	b	LBB0_7
LBB0_27:
	cbz	x0, LBB0_31
; %bb.28:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	cmp	w9, #1057
	b.ne	LBB0_31
; %bb.29:
	ldr	w8, [x8, #4]
	cmp	w8, #29
	b.le	LBB0_31
; %bb.30:
	mov	w20, #7
	b	LBB0_7
LBB0_31:
	mov	w20, #6
	b	LBB0_7
LBB0_32:
	mov	x0, x19
	bl	_is_bcm_board_vendor
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x0, LBB0_35
; %bb.33:
	ldr	w9, [x8, #8]
	cmp	w9, #1046
	b.ne	LBB0_35
; %bb.34:
	mov	w20, #5
	b	LBB0_7
LBB0_35:
	ldr	w8, [x8]
	mov	w9, #17184
	cmp	w8, w9
	mov	w8, #3
	cinc	w20, w8, eq
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_26-LBB0_5)>>2
                                        ; -- End function
	.comm	_B43legacy_PHYTYPE_G,4,2        ; @B43legacy_PHYTYPE_G
.subsections_via_symbols
