	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rf_init2
_rf_init2:                              ## @rf_init2
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movabsq	$274877907008, %rax             ## imm = 0x4000000040
	movq	%rax, -64(%rbp)
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	leaq	-64(%rbp), %rcx
	movl	$234, %edx
	movl	$2, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	$0, -64(%rbp)
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, -60(%rbp)
	movabsq	$12884901889, %rax              ## imm = 0x300000001
	movq	%rax, -56(%rbp)
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	leaq	-64(%rbp), %rcx
	movl	$48, %edx
	movl	$4, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	8(%rbx), %r14
	movl	(%r15), %r15d
	movq	_rf_init2_seq1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %r14
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_rf_init2_seq2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X,8,3 ## @CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X
	.comm	_rf_init2_seq1,4,2              ## @rf_init2_seq1
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_rf_init2_seq2,4,2              ## @rf_init2_seq2
	.no_dead_strip	_rf_init2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rf_init2
lCPI0_0:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rf_init2:                              ; @rf_init2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	mov	w3, #16
	blr	x8
	cbnz	w0, LBB0_7
; %bb.2:
	movi.2s	v0, #64
	str	d0, [sp]
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #8]
	ldr	w1, [x21]
	mov	x3, sp
	mov	w2, #234
	mov	w4, #2
	blr	x8
	cbnz	w0, LBB0_7
; %bb.3:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
Lloh5:
	adrp	x8, _CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	x9, x0, [x19]
	cmp	x9, x8
	cset	w8, ne
	stp	wzr, w8, [sp]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	w1, [x21]
	mov	x3, sp
	mov	w2, #48
	mov	w4, #4
	blr	x8
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x20, [x19, #8]
	ldr	w21, [x21]
Lloh10:
	adrp	x8, _rf_init2_seq1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rf_init2_seq1@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x19, [x19, #8]
Lloh13:
	adrp	x8, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x8, _rf_init2_seq2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rf_init2_seq2@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_cxd2880_io_write_multi_regs
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X,8,3 ; @CXD2880_TNRDMD_CHIP_ID_CXD2880_ES1_0X
	.comm	_rf_init2_seq1,4,2              ; @rf_init2_seq1
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_rf_init2_seq2,4,2              ; @rf_init2_seq2
	.no_dead_strip	_rf_init2
.subsections_via_symbols
