	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radio_bits_get
_radio_bits_get:                        ## @radio_bits_get
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	movq	_IO_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	%r12d, %edi
	callq	_inw
	movq	_STR_CLK@GOTPCREL(%rip), %r13
	movq	_STR_WREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%r13), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	notl	%edi
	movl	(%rbx), %esi
	addl	%r12d, %esi
	callq	_outw
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%r12d, %esi
	callq	_outw
	movl	$16, %edi
	callq	_udelay
	movl	$-23, %r14d
	movq	_STR_DATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_outw
	movl	$2, %edi
	callq	_udelay
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %edi
	callq	_inw
	movq	_STR_MOST@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$0, %eax
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovel	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movl	%r12d, %esi
	callq	_outw
	movl	$2, %edi
	callq	_udelay
	addl	%ebx, %ebx
	movl	%r12d, %edi
	callq	_inw
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	(%r15), %eax
	setne	%cl
	orl	%ecx, %ebx
	movl	$2, %edi
	callq	_udelay
	incl	%r14d
	jmp	LBB0_1
LBB0_5:
	movq	_STR_MOST@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	sete	%cl
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, 8(%r14)
	movl	$2, %edi
	callq	_udelay
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.6:
	movq	_STR_WREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_outw
LBB0_7:
	movl	$4, %edi
	callq	_udelay
	movq	_IO_MASK@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	callq	_outw
	andl	$16382, %ebx                    ## imm = 0x3FFE
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_MASK,4,2                    ## @IO_MASK
	.comm	_STR_CLK,4,2                    ## @STR_CLK
	.comm	_STR_WREN,4,2                   ## @STR_WREN
	.comm	_STR_MOST,4,2                   ## @STR_MOST
	.comm	_STR_DATA,4,2                   ## @STR_DATA
	.no_dead_strip	_radio_bits_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radio_bits_get
_radio_bits_get:                        ; @radio_bits_get
	.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	x21, x0
	ldr	w19, [x0]
Lloh0:
	adrp	x22, _IO_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IO_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w0, w8, w19
	bl	_inw
	mov	x20, x0
Lloh2:
	adrp	x24, _STR_CLK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STR_CLK@GOTPAGEOFF]
Lloh4:
	adrp	x9, _STR_WREN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _STR_WREN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mvn	w0, w8
	ldr	w8, [x22]
	add	w1, w8, w19
	bl	_outw
	mov	w0, #0
	mov	x1, x19
	bl	_outw
	mov	w0, #16
	bl	_udelay
	mov	w23, #0
	mov	w25, #-23
Lloh7:
	adrp	x26, _STR_MOST@GOTPAGE
Lloh8:
	ldr	x26, [x26, _STR_MOST@GOTPAGEOFF]
	mov	w27, #65535
Lloh9:
	adrp	x28, _STR_DATA@GOTPAGE
Lloh10:
	ldr	x28, [x28, _STR_DATA@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_outw
	mov	w0, #2
	bl	_udelay
	cbnz	w25, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_inw
	ldr	w8, [x26]
	tst	w8, w0
	csel	w8, w27, wzr, eq
	str	w8, [x21, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #0
	mov	x1, x19
	bl	_outw
	mov	w0, #2
	bl	_udelay
	lsl	w23, w23, #1
	mov	x0, x19
	bl	_inw
	cbz	w25, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	tst	w8, w0
	cset	w8, ne
	orr	w23, w23, w8
	mov	w0, #2
	bl	_udelay
	add	w25, w25, #1
	b	LBB0_1
LBB0_5:
	ldr	w8, [x26]
	tst	w8, w0
	cset	w8, eq
	str	w8, [x21, #8]
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _STR_WREN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STR_WREN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_outw
LBB0_7:
	mov	w0, #4
	bl	_udelay
	ldr	w8, [x22]
	add	w1, w8, w19
	mov	x0, x20
	bl	_outw
	and	w0, w23, #0x3ffe
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_MASK,4,2                    ; @IO_MASK
	.comm	_STR_CLK,4,2                    ; @STR_CLK
	.comm	_STR_WREN,4,2                   ; @STR_WREN
	.comm	_STR_MOST,4,2                   ; @STR_MOST
	.comm	_STR_DATA,4,2                   ; @STR_DATA
	.no_dead_strip	_radio_bits_get
.subsections_via_symbols
