	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_af9005_read_register_bits      ## -- Begin function af9005_read_register_bits
	.p2align	4, 0x90
_af9005_read_register_bits:             ## @af9005_read_register_bits
	.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	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_reg
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_reg
	jmp	LBB0_3
LBB0_2:
	movl	-44(%rbp), %esi
	movl	%r12d, %ecx
	sarl	%cl, %esi
	movq	_regmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	andl	-4(%rax,%rcx,4), %esi
	movl	%esi, (%r14)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_reg
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read bits %x %x %x"

L_.str.1:                               ## @.str.1
	.asciz	" failed\n"

	.comm	_regmask,8,3                    ## @regmask
L_.str.2:                               ## @.str.2
	.asciz	" value %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_af9005_read_register_bits      ; -- Begin function af9005_read_register_bits
	.p2align	2
_af9005_read_register_bits:             ; @af9005_read_register_bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	stp	x22, x20, [sp, #8]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_reg
	add	x2, sp, #28
	mov	x0, x23
	mov	x1, x21
	bl	_af9005_read_ofdm_register
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #28]
	asr	w8, w8, w22
Lloh4:
	adrp	x9, _regmask@GOTPAGE
Lloh5:
	ldr	x9, [x9, _regmask@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	sub	w10, w20, #1
	ldr	w9, [x9, w10, sxtw #2]
	and	w8, w9, w8
	str	w8, [x19]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_3:
	bl	_deb_reg
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read bits %x %x %x"

l_.str.1:                               ; @.str.1
	.asciz	" failed\n"

	.comm	_regmask,8,3                    ; @regmask
l_.str.2:                               ; @.str.2
	.asciz	" value %x\n"

.subsections_via_symbols
