	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_read_word_agc
_af9005_read_word_agc:                  ## @af9005_read_word_agc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%ecx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_af9005_read_ofdm_register
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_af9005_read_ofdm_register
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	cmpl	$6, %r15d
	ja	LBB0_9
## %bb.3:
	movl	%r15d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	-36(%rbp), %eax
	andl	$3, %eax
	shll	$8, %eax
	jmp	LBB0_5
LBB0_6:
	movl	-36(%rbp), %eax
	andl	$12, %eax
	shll	$6, %eax
	jmp	LBB0_5
LBB0_7:
	movl	-36(%rbp), %eax
	andl	$48, %eax
	shll	$4, %eax
	jmp	LBB0_5
LBB0_8:
	movl	-36(%rbp), %eax
	shll	$2, %eax
	andl	$768, %eax                      ## imm = 0x300
LBB0_5:
	addl	-40(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid pos in read word agc"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_af9005_read_word_agc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_read_word_agc
_af9005_read_word_agc:                  ; @af9005_read_word_agc
	.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, x5
	mov	x20, x3
	mov	x8, x2
	mov	x21, x1
	mov	x22, x0
	add	x2, sp, #12
	mov	x1, x8
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_10
; %bb.1:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_10
; %bb.2:
	cmp	w20, #6
	b.hi	LBB0_11
; %bb.3:
	mov	w8, w20
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w0, #0
	ldr	w8, [sp, #8]
	ubfiz	w8, w8, #8, #2
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	ldr	w8, [sp, #8]
	lsl	w8, w8, #6
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	ldr	w8, [sp, #8]
	lsl	w8, w8, #4
	b	LBB0_8
LBB0_7:
	mov	w0, #0
	ldr	w8, [sp, #8]
	lsl	w8, w8, #2
LBB0_8:
	and	w8, w8, #0x300
LBB0_9:
	ldr	w9, [sp, #12]
	add	w8, w8, w9
	str	w8, [x19]
LBB0_10:
	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
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid pos in read word agc"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_af9005_read_word_agc
.subsections_via_symbols
