	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_radio_id
_read_radio_id:                         ## @read_radio_id
	.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	16(%rdi), %rax
	movl	(%rax), %edi
	movl	$24, %esi
	callq	_D11REV_GE
	movl	8(%r14), %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_radioregaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %r12
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_bcma_wflush16
	movl	8(%r14), %ebx
	movq	_radioregdata@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movq	%rax, %rbx
	movl	8(%r14), %r15d
	movl	(%r12), %edi
	callq	_D11REGOFFS
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_bcma_wflush16
	movl	8(%r14), %r15d
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movq	%rax, %r15
	movl	8(%r14), %r12d
	movq	_radioregaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$2, %edx
	callq	_bcma_wflush16
	movl	8(%r14), %r12d
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	shll	$20, %eax
	shll	$12, %r15d
	orl	%eax, %r15d
	roll	$28, %ebx
	andl	$-268435441, %ebx               ## imm = 0xF000000F
	jmp	LBB0_3
LBB0_2:
	movq	_phy4waddr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	_RADIO_IDCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_wflush16
	movl	8(%r14), %ebx
	movq	_phy4wdatalo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movq	%rax, %r15
	movl	8(%r14), %ebx
	movq	_phy4wdatahi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read16
	movq	%rax, %rbx
	shll	$16, %ebx
LBB0_3:
	orl	%r15d, %ebx
	movq	$0, (%r14)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_radioregaddr,4,2               ## @radioregaddr
	.comm	_radioregdata,4,2               ## @radioregdata
	.comm	_phy4waddr,4,2                  ## @phy4waddr
	.comm	_RADIO_IDCODE,4,2               ## @RADIO_IDCODE
	.comm	_phy4wdatalo,4,2                ## @phy4wdatalo
	.comm	_phy4wdatahi,4,2                ## @phy4wdatahi
	.no_dead_strip	_read_radio_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_radio_id
_read_radio_id:                         ; @read_radio_id
	.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
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	mov	w1, #24
	bl	_D11REV_GE
	ldr	w20, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x23, _radioregaddr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _radioregaddr@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_bcma_wflush16
	ldr	w20, [x19, #8]
Lloh2:
	adrp	x24, _radioregdata@GOTPAGE
Lloh3:
	ldr	x24, [x24, _radioregdata@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read16
	mov	x20, x0
	ldr	w21, [x19, #8]
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_bcma_wflush16
	ldr	w21, [x19, #8]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read16
	mov	x21, x0
	ldr	w22, [x19, #8]
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x22
	mov	w2, #2
	bl	_bcma_wflush16
	ldr	w22, [x19, #8]
	ldr	w0, [x24]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x22
	bl	_bcma_read16
	ror	w8, w20, #4
	and	w8, w8, #0xf000000f
	orr	w8, w8, w21, lsl #12
	orr	w0, w8, w0, lsl #20
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _phy4waddr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _phy4waddr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
Lloh7:
	adrp	x8, _RADIO_IDCODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RADIO_IDCODE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bcma_wflush16
	ldr	w20, [x19, #8]
Lloh10:
	adrp	x8, _phy4wdatalo@GOTPAGE
Lloh11:
	ldr	x8, [x8, _phy4wdatalo@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read16
	mov	x20, x0
	ldr	w21, [x19, #8]
Lloh13:
	adrp	x8, _phy4wdatahi@GOTPAGE
Lloh14:
	ldr	x8, [x8, _phy4wdatahi@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read16
	orr	w0, w20, w0, lsl #16
LBB0_3:
	str	xzr, [x19]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_radioregaddr,4,2               ; @radioregaddr
	.comm	_radioregdata,4,2               ; @radioregdata
	.comm	_phy4waddr,4,2                  ; @phy4waddr
	.comm	_RADIO_IDCODE,4,2               ; @RADIO_IDCODE
	.comm	_phy4wdatalo,4,2                ; @phy4wdatalo
	.comm	_phy4wdatahi,4,2                ; @phy4wdatahi
	.no_dead_strip	_read_radio_id
.subsections_via_symbols
