	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_integ_init             ## -- Begin function cxd2880_integ_init
	.p2align	4, 0x90
_cxd2880_integ_init:                    ## @cxd2880_integ_init
	.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	$0, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	callq	_cxd2880_tnrdmd_init1
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r14d
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_check_internal_cpu_status
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	_CXD2880_TNRDMD_WAIT_INIT_TIMEOUT@GOTPCREL(%rip), %r12
	movq	_CXD2880_TNRDMD_WAIT_INIT_INTVL@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -48(%rbp)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_ms
	cmpq	(%r12), %rax
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdi
	leaq	1000(%rdi), %rsi
	callq	_usleep_range
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cxd2880_tnrdmd_check_internal_cpu_status
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_init2
	jmp	LBB0_11
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_WAIT_INIT_TIMEOUT,8,3 ## @CXD2880_TNRDMD_WAIT_INIT_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_CXD2880_TNRDMD_WAIT_INIT_INTVL,8,3 ## @CXD2880_TNRDMD_WAIT_INIT_INTVL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_integ_init             ; -- Begin function cxd2880_integ_init
	.p2align	2
_cxd2880_integ_init:                    ; @cxd2880_integ_init
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_cxd2880_tnrdmd_init1
	cbnz	w0, LBB0_9
; %bb.2:
	bl	_ktime_get
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_cxd2880_tnrdmd_check_internal_cpu_status
	cbnz	w0, LBB0_9
; %bb.3:
Lloh0:
	adrp	x21, _CXD2880_TNRDMD_WAIT_INIT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CXD2880_TNRDMD_WAIT_INIT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _CXD2880_TNRDMD_WAIT_INIT_INTVL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CXD2880_TNRDMD_WAIT_INIT_INTVL@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_ktime_get
	mov	x1, x20
	bl	_ktime_sub
	bl	_ktime_to_ms
	ldr	x8, [x21]
	cmp	x0, x8
	b.gt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22]
	add	x1, x0, #1000
	bl	_usleep_range
	add	x1, sp, #8
	mov	x0, x19
	bl	_cxd2880_tnrdmd_check_internal_cpu_status
	cbz	w0, LBB0_4
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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_10:
	mov	x0, x19
	bl	_cxd2880_tnrdmd_init2
	b	LBB0_9
LBB0_11:
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_WAIT_INIT_TIMEOUT,8,3 ; @CXD2880_TNRDMD_WAIT_INIT_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_CXD2880_TNRDMD_WAIT_INIT_INTVL,8,3 ; @CXD2880_TNRDMD_WAIT_INIT_INTVL
.subsections_via_symbols
