	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_init_rf_bank4_pwr
_carl9170_init_rf_bank4_pwr:            ## @carl9170_init_rf_bank4_pwr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_4
## %bb.3:
	addl	$10, %edx
LBB0_6:
	testl	%esi, %esi
	je	LBB0_11
LBB0_7:
	imull	$-858993459, %edx, %eax         ## imm = 0xCCCCCCCD
	addl	$429496728, %eax                ## imm = 0x19999998
	rorl	%eax
	addl	$-4800, %edx                    ## imm = 0xED40
	cmpl	$429496729, %eax                ## imm = 0x19999999
	jb	LBB0_9
## %bb.8:
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$33, %rdi
	addl	%eax, %edi
	xorl	%eax, %eax
	movl	$41, %ebx
	jmp	LBB0_10
LBB0_5:
	addl	$-10, %edx
	testl	%esi, %esi
	jne	LBB0_7
LBB0_11:
	cmpl	$2484, %edx                     ## imm = 0x9B4
	jne	LBB0_13
## %bb.12:
	movl	$2, %r12d
	movl	$208, %edi
	jmp	LBB0_14
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
	addl	%edi, %edi
	movl	$4, %eax
	movl	$33, %ebx
LBB0_10:
	orl	%eax, %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_bitrev8
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_13:
	addl	$-2272, %edx                    ## imm = 0xF720
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$33, %rax
	addl	%ecx, %eax
	leal	64(,%rax,4), %edi
	xorl	%r12d, %r12d
LBB0_14:
	callq	_bitrev8
	movl	%eax, %r15d
	movl	$41, %ebx
LBB0_15:
	orl	%ebx, %r12d
	movl	%r12d, %eax
	andl	$31, %eax
	movl	%r15d, %ebx
	andl	$31, %ebx
	shll	$5, %ebx
	orl	%eax, %ebx
	shrl	$5, %r12d
	andl	$224, %r15d
	orl	%r12d, %r15d
	movq	%r14, %rdi
	callq	_carl9170_regwrite_begin
	movl	$1857712, %edi                  ## imm = 0x1C58B0
	movl	%ebx, %esi
	callq	_carl9170_regwrite
	movl	$1857768, %edi                  ## imm = 0x1C58E8
	movl	%r15d, %esi
	callq	_carl9170_regwrite
	xorl	%eax, %eax
	callq	_carl9170_regwrite_finish
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_carl9170_regwrite_result       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_carl9170_init_rf_bank4_pwr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_init_rf_bank4_pwr
_carl9170_init_rf_bank4_pwr:            ; @carl9170_init_rf_bank4_pwr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	cmp	w3, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w3, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w3, #129
	b.ne	LBB0_9
; %bb.3:
	add	w2, w2, #10
LBB0_4:
	cbz	w1, LBB0_7
LBB0_5:
	mov	w8, #-4800
	add	w8, w2, w8
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mov	w10, #39320
	movk	w10, #6553, lsl #16
	madd	w9, w2, w9, w10
	ror	w9, w9, #1
	mov	w10, #39321
	movk	w10, #6553, lsl #16
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x8, w8, w11
	lsr	x11, x8, #63
	asr	x12, x8, #34
	add	w12, w12, w11
	lsl	w12, w12, #1
	mov	w13, #4
	mov	w14, #33
	asr	x8, x8, #33
	add	w8, w8, w11
	mov	w11, #41
	cmp	w9, w10
	csel	w0, w12, w8, lo
	csel	w21, w14, w11, lo
	csel	w22, w13, wzr, lo
	bl	_bitrev8
	mov	w20, #0
	orr	w8, w21, w22
	b	LBB0_12
LBB0_6:
	sub	w2, w2, #10
	cbnz	w1, LBB0_5
LBB0_7:
	cmp	w2, #2484
	b.ne	LBB0_10
; %bb.8:
	mov	w20, #2
	mov	w0, #208
	b	LBB0_11
LBB0_9:
	bl	_BUG
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w20, #0
	sub	w8, w2, #2272
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #33
	add	w8, w8, w9
	lsl	w8, w8, #2
	add	w0, w8, #64
LBB0_11:
	bl	_bitrev8
	mov	w8, #41
LBB0_12:
	orr	w8, w8, w20
	and	w20, w8, #0x1f
	bfi	w20, w0, #5, #5
	and	w9, w0, #0xe0
	orr	w21, w9, w8, lsr #5
	mov	x0, x19
	bl	_carl9170_regwrite_begin
	mov	w19, #22704
	movk	w19, #28, lsl #16
	mov	w0, #22704
	movk	w0, #28, lsl #16
	mov	x1, x20
	bl	_carl9170_regwrite
	add	w0, w19, #56
	mov	x1, x21
	bl	_carl9170_regwrite
	bl	_carl9170_regwrite_finish
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_carl9170_regwrite_result
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_carl9170_init_rf_bank4_pwr
.subsections_via_symbols
