	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b43_phy_shm_tssi_read
LCPI0_0:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
LCPI0_1:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_b43_phy_shm_tssi_read
	.p2align	4, 0x90
_b43_phy_shm_tssi_read:                 ## @b43_phy_shm_tssi_read
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_B43_SHM_SH_TSSI_CCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_b43_shm_read32
	movl	%eax, %r12d
	andl	$255, %r12d
	je	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	movq	_B43_TSSI_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r12d
	je	LBB0_8
## %bb.2:
	movl	%ebx, %r13d
	shrl	$8, %r13d
	movzbl	%r13b, %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	cmpl	%ecx, %eax
	je	LBB0_8
## %bb.4:
	movl	%ebx, %edx
	shrl	$16, %edx
	movzbl	%dl, %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.5:
	cmpl	%ecx, %esi
	je	LBB0_8
## %bb.6:
	cmpl	$16777216, %ebx                 ## imm = 0x1000000
	jb	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	shrl	$24, %edi
	cmpl	%ecx, %edi
	je	LBB0_8
## %bb.9:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	shll	$8, %eax
	orl	%ecx, %eax
	movl	%ecx, %edx
	shll	$16, %edx
	shll	$24, %ecx
	orl	%edx, %ecx
	orl	%eax, %ecx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_b43_shm_write32
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	addl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %ebx
	addl	$2, %ebx
	shrl	$2, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movd	%r13d, %xmm0
	pinsrd	$1, %ebx, %xmm0
	pinsrd	$2, -48(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$3, -44(%rbp), %xmm0            ## 4-byte Folded Reload
	paddd	LCPI0_0(%rip), %xmm0
	pand	LCPI0_1(%rip), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r15d
	leal	2(%r15), %ebx
	shrl	$2, %ebx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_SHM_SH_HOSTF1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_b43_shm_read16
	movq	_B43_HF_CCKBOOST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	addl	$-13, %ebx
	xorl	%eax, %eax
	cmpl	$50, %r15d
	cmovbl	%eax, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_SHM_SH_TSSI_CCK,8,3        ## @B43_SHM_SH_TSSI_CCK
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_TSSI_MAX,4,2               ## @B43_TSSI_MAX
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_B43_SHM_SH_HOSTF1,4,2          ## @B43_SHM_SH_HOSTF1
	.comm	_B43_HF_CCKBOOST,4,2            ## @B43_HF_CCKBOOST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_phy_shm_tssi_read          ; -- Begin function b43_phy_shm_tssi_read
	.p2align	2
_b43_phy_shm_tssi_read:                 ; @b43_phy_shm_tssi_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _B43_SHM_SH_TSSI_CCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_SHM_SH_TSSI_CCK@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x22, _B43_SHM_SHARED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _B43_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_b43_shm_read32
	ands	w25, w0, #0xff
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x0
	ubfx	w26, w0, #8, #8
	ubfx	w27, w0, #16, #8
	lsr	w24, w0, #24
Lloh5:
	adrp	x8, _B43_TSSI_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_TSSI_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w25, w8
	ccmp	w26, #0, #4, ne
	ccmp	w26, w8, #4, ne
	ccmp	w27, #0, #4, ne
	ccmp	w27, w8, #4, ne
	ccmp	w24, #0, #4, ne
	ccmp	w24, w8, #4, ne
	b.ne	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	orr	w9, w8, w8, lsl #8
	orr	w9, w9, w8, lsl #16
	orr	w3, w9, w8, lsl #24
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_shm_write32
	cmp	x23, x20
	b.ne	LBB0_6
; %bb.5:
	add	w8, w25, w24
	add	w8, w8, w26
	add	w8, w8, w27
	add	w8, w8, #2
	lsr	w20, w8, #2
	b	LBB0_3
LBB0_6:
	lsr	w8, w21, #8
	lsr	w9, w21, #16
	add	w10, w21, #32
	and	w10, w10, #0x3f
	add	w8, w8, #32
	and	w8, w8, #0x3f
	add	w9, w9, #32
	and	w9, w9, #0x3f
	add	w11, w24, #32
	and	w11, w11, #0x3f
	add	w8, w8, w10
	add	w8, w8, w9
	add	w21, w8, w11
	add	w8, w21, #2
	lsr	w20, w8, #2
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _B43_SHM_SH_HOSTF1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_SHM_SH_HOSTF1@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
Lloh14:
	adrp	x8, _B43_HF_CCKBOOST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_HF_CCKBOOST@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.7:
	sub	w8, w20, #13
	cmp	w21, #49
	csel	w20, w8, wzr, hi
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_SHM_SH_TSSI_CCK,8,3        ; @B43_SHM_SH_TSSI_CCK
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_TSSI_MAX,4,2               ; @B43_TSSI_MAX
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_B43_SHM_SH_HOSTF1,4,2          ; @B43_SHM_SH_HOSTF1
	.comm	_B43_HF_CCKBOOST,4,2            ; @B43_HF_CCKBOOST
.subsections_via_symbols
