	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_fe_select_bw
_af9005_fe_select_bw:                   ## @af9005_fe_select_bw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$6000000, %esi                  ## imm = 0x5B8D80
	je	LBB0_1
## %bb.2:
	cmpl	$8000000, %esi                  ## imm = 0x7A1200
	je	LBB0_6
## %bb.3:
	cmpl	$7000000, %esi                  ## imm = 0x6ACFC0
	jne	LBB0_5
## %bb.4:
	movl	$1, %r8d
	jmp	LBB0_7
LBB0_1:
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_6:
	movl	$2, %r8d
LBB0_7:
	movq	_xd_g_reg_bw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_reg_bw_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_reg_bw_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_af9005_write_register_bits     ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bandwidth %d."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_xd_g_reg_bw,4,2                ## @xd_g_reg_bw
	.comm	_reg_bw_pos,4,2                 ## @reg_bw_pos
	.comm	_reg_bw_len,4,2                 ## @reg_bw_len
	.no_dead_strip	_af9005_fe_select_bw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_fe_select_bw
_af9005_fe_select_bw:                   ; @af9005_fe_select_bw
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #1464, lsl #12          ; =5996544
	cmp	w8, #3456
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #4608
	movk	w8, #122, lsl #16
	cmp	w1, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #53184
	movk	w8, #106, lsl #16
	cmp	w1, w8
	b.ne	LBB0_7
; %bb.3:
	mov	w4, #1
	b	LBB0_6
LBB0_4:
	mov	w4, #0
	b	LBB0_6
LBB0_5:
	mov	w4, #2
LBB0_6:
Lloh0:
	adrp	x8, _xd_g_reg_bw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xd_g_reg_bw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _reg_bw_pos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _reg_bw_pos@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _reg_bw_len@GOTPAGE
Lloh7:
	ldr	x8, [x8, _reg_bw_len@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_af9005_write_register_bits
LBB0_7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bandwidth %d."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_xd_g_reg_bw,4,2                ; @xd_g_reg_bw
	.comm	_reg_bw_pos,4,2                 ; @reg_bw_pos
	.comm	_reg_bw_len,4,2                 ; @reg_bw_len
	.no_dead_strip	_af9005_fe_select_bw
.subsections_via_symbols
