	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_ht_rssi_select
_b43_phy_ht_rssi_select:                ## @b43_phy_ht_rssi_select
	.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, %r15
	testl	%esi, %esi
	je	LBB0_13
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%esi, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.6:
	movl	%ebx, %eax
	andl	$-3, %eax
	cmpl	$1, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$131, %r14d
	je	LBB0_4
	jmp	LBB0_8
LBB0_13:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43err                         ## TAILCALL
LBB0_2:
	cmpl	$131, %r14d
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movl	$137, %esi
	movl	$768, %edx                      ## imm = 0x300
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$137, %esi
	movl	$3072, %edx                     ## imm = 0xC00
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$136, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$136, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$191, %esi
	movl	$1, %edx
	callq	_b43_radio_set
	movq	%r15, %rdi
	movl	$475, %esi                      ## imm = 0x1DB
	movl	$17, %edx
	callq	_b43_radio_write
	movl	%ebx, %eax
	andl	$-3, %eax
	cmpl	$1, %eax
	je	LBB0_9
LBB0_4:
	movq	%r15, %rdi
	movl	$135, %esi
	movl	$768, %edx                      ## imm = 0x300
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$135, %esi
	movl	$3072, %edx                     ## imm = 0xC00
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$134, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$134, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$191, %esi
	movl	$1, %edx
	callq	_b43_radio_set
	movq	%r15, %rdi
	movl	$473, %esi                      ## imm = 0x1D9
	movl	$17, %edx
	callq	_b43_radio_write
	jmp	LBB0_9
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_b43err
	movl	%ebx, %eax
	andl	$-3, %eax
	cmpl	$1, %eax
	je	LBB0_9
LBB0_8:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_b43err
LBB0_9:
	decl	%ebx
	cmpl	$2, %ebx
	jae	LBB0_10
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$131, %r14d
	jne	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	movl	$133, %esi
	movl	$768, %edx                      ## imm = 0x300
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$133, %esi
	movl	$3072, %edx                     ## imm = 0xC00
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$132, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$132, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_b43_phy_set
	movq	%r15, %rdi
	movl	$191, %esi
	movl	$1, %edx
	callq	_b43_radio_set
	movq	%r15, %rdi
	movl	$473, %esi                      ## imm = 0x1D9
	movl	$17, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_radio_write                ## TAILCALL
LBB0_14:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSSI selection for core off not implemented yet\n"

L_.str.1:                               ## @.str.1
	.asciz	"RSSI selection for type %d not implemented yet\n"

	.no_dead_strip	_b43_phy_ht_rssi_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_ht_rssi_select
_b43_phy_ht_rssi_select:                ; @b43_phy_ht_rssi_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	cbz	w1, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	and	w8, w1, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.2:
	and	w8, w21, #0xfffffffd
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.3:
	cmp	w20, #131
	b.eq	LBB0_7
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_b43err
LBB0_5:
	cmp	w20, #131
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #137
	mov	w2, #768
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #137
	mov	w2, #3072
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #136
	mov	w2, #512
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #136
	mov	w2, #1024
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #191
	mov	w2, #1
	bl	_b43_radio_set
	mov	x0, x19
	mov	w1, #475
	mov	w2, #17
	bl	_b43_radio_write
	and	w8, w21, #0xfffffffd
	cmp	w8, #1
	b.eq	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	w1, #135
	mov	w2, #768
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #135
	mov	w2, #3072
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #134
	mov	w2, #512
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #134
	mov	w2, #1024
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #191
	mov	w2, #1
	bl	_b43_radio_set
	mov	x0, x19
	mov	w1, #473
	mov	w2, #17
	bl	_b43_radio_write
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43err
	and	w8, w21, #0xfffffffd
	cmp	w8, #1
	b.eq	LBB0_10
LBB0_9:
	ldr	w0, [x19]
	mov	x8, x20
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43err
LBB0_10:
	sub	w8, w21, #1
	cmp	w8, #2
	b.lo	LBB0_14
; %bb.11:
	cmp	w20, #131
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #133
	mov	w2, #768
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #133
	mov	w2, #3072
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #132
	mov	w2, #512
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #132
	mov	w2, #1024
	bl	_b43_phy_set
	mov	x0, x19
	mov	w1, #191
	mov	w2, #1
	bl	_b43_radio_set
	mov	x0, x19
	mov	w1, #473
	mov	w2, #17
	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
	add	sp, sp, #64
	b	_b43_radio_write
LBB0_13:
	ldr	w0, [x19]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43err
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSSI selection for core off not implemented yet\n"

l_.str.1:                               ; @.str.1
	.asciz	"RSSI selection for type %d not implemented yet\n"

	.no_dead_strip	_b43_phy_ht_rssi_select
.subsections_via_symbols
