	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_versioning
_b43_phy_versioning:                    ## @b43_phy_versioning
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_B43_MMIO_PHY_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_b43_read16
                                        ## kill: def $eax killed $eax def $rax
	movq	_B43_PHYVER_ANALOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%eax, %r15d
	movq	_B43_PHYVER_ANALOG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r15d
	movq	_B43_PHYVER_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_B43_PHYVER_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_B43_PHYVER_VERSION@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_B43_PHYTYPE_LCNXN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	movl	$128, %ebx
	cmovnel	%edx, %ebx
	leal	16(%rax), %r12d
	cmovnel	%eax, %r12d
	movl	(%r14), %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_b43_phy_name
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r12d, %r9d
	callq	_b43err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MMIO_PHY_VER,4,2           ## @B43_MMIO_PHY_VER
	.comm	_B43_PHYVER_ANALOG,4,2          ## @B43_PHYVER_ANALOG
	.comm	_B43_PHYVER_ANALOG_SHIFT,4,2    ## @B43_PHYVER_ANALOG_SHIFT
	.comm	_B43_PHYVER_TYPE,4,2            ## @B43_PHYVER_TYPE
	.comm	_B43_PHYVER_TYPE_SHIFT,4,2      ## @B43_PHYVER_TYPE_SHIFT
	.comm	_B43_PHYVER_VERSION,4,2         ## @B43_PHYVER_VERSION
	.comm	_B43_PHYTYPE_LCNXN,4,2          ## @B43_PHYTYPE_LCNXN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FOUND UNSUPPORTED PHY (Analog %u, Type %d (%s), Revision %u)\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_B43_MMIO_RADIO24_CONTROL,4,2   ## @B43_MMIO_RADIO24_CONTROL
	.comm	_B43_MMIO_RADIO24_DATA,4,2      ## @B43_MMIO_RADIO24_DATA
	.comm	_B43_MMIO_RADIO_CONTROL,4,2     ## @B43_MMIO_RADIO_CONTROL
	.comm	_B43_RADIOCTL_ID,4,2            ## @B43_RADIOCTL_ID
	.comm	_B43_MMIO_RADIO_DATA_LOW,4,2    ## @B43_MMIO_RADIO_DATA_LOW
	.comm	_B43_MMIO_RADIO_DATA_HIGH,4,2   ## @B43_MMIO_RADIO_DATA_HIGH
	.no_dead_strip	_b43_phy_versioning
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_versioning
_b43_phy_versioning:                    ; @b43_phy_versioning
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _B43_MMIO_PHY_VER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_MMIO_PHY_VER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_b43_read16
Lloh3:
	adrp	x8, _B43_PHYVER_ANALOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_PHYVER_ANALOG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _B43_PHYVER_ANALOG_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B43_PHYVER_ANALOG_SHIFT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh8:
	ldr	w9, [x9]
	asr	w20, w8, w9
Lloh9:
	adrp	x8, _B43_PHYVER_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_PHYVER_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _B43_PHYVER_TYPE_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _B43_PHYVER_TYPE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _B43_PHYVER_VERSION@GOTPAGE
Lloh16:
	ldr	x10, [x10, _B43_PHYVER_VERSION@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	and	w9, w9, w0
Lloh18:
	adrp	x10, _B43_PHYTYPE_LCNXN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _B43_PHYTYPE_LCNXN@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	add	w11, w9, #16
	mov	w12, #128
	cmp	w8, w10
	csel	w21, w12, w8, eq
	csel	w22, w11, w9, eq
	ldr	w23, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_b43_phy_name
	mov	x4, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	mov	x3, x21
	mov	x5, x22
	bl	_b43err
Lloh23:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MMIO_PHY_VER,4,2           ; @B43_MMIO_PHY_VER
	.comm	_B43_PHYVER_ANALOG,4,2          ; @B43_PHYVER_ANALOG
	.comm	_B43_PHYVER_ANALOG_SHIFT,4,2    ; @B43_PHYVER_ANALOG_SHIFT
	.comm	_B43_PHYVER_TYPE,4,2            ; @B43_PHYVER_TYPE
	.comm	_B43_PHYVER_TYPE_SHIFT,4,2      ; @B43_PHYVER_TYPE_SHIFT
	.comm	_B43_PHYVER_VERSION,4,2         ; @B43_PHYVER_VERSION
	.comm	_B43_PHYTYPE_LCNXN,4,2          ; @B43_PHYTYPE_LCNXN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FOUND UNSUPPORTED PHY (Analog %u, Type %d (%s), Revision %u)\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_B43_MMIO_RADIO24_CONTROL,4,2   ; @B43_MMIO_RADIO24_CONTROL
	.comm	_B43_MMIO_RADIO24_DATA,4,2      ; @B43_MMIO_RADIO24_DATA
	.comm	_B43_MMIO_RADIO_CONTROL,4,2     ; @B43_MMIO_RADIO_CONTROL
	.comm	_B43_RADIOCTL_ID,4,2            ; @B43_RADIOCTL_ID
	.comm	_B43_MMIO_RADIO_DATA_LOW,4,2    ; @B43_MMIO_RADIO_DATA_LOW
	.comm	_B43_MMIO_RADIO_DATA_HIGH,4,2   ; @B43_MMIO_RADIO_DATA_HIGH
	.no_dead_strip	_b43_phy_versioning
.subsections_via_symbols
