	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_init2           ## -- Begin function cxd2880_tnrdmd_init2
	.p2align	4, 0x90
_cxd2880_tnrdmd_init2:                  ## @cxd2880_tnrdmd_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_3:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_check_internal_cpu_status
	testl	%eax, %eax
	je	LBB0_4
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, -20(%rbp)
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	callq	_rf_init2
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_8
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_rf_init2
	testl	%eax, %eax
	jne	LBB0_14
LBB0_8:
	movq	%rbx, %rdi
	callq	_load_cfg_mem
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	16(%rbx), %rdi
	callq	_load_cfg_mem
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
LBB0_12:
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 8(%rbx)
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jne	LBB0_14
## %bb.13:
	movq	16(%rbx), %rcx
	movq	%rsi, 8(%rcx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ## @CXD2880_TNRDMD_STATE_SLEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_init2           ; -- Begin function cxd2880_tnrdmd_init2
	.p2align	2
_cxd2880_tnrdmd_init2:                  ; @cxd2880_tnrdmd_init2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_cxd2880_tnrdmd_check_internal_cpu_status
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_2
; %bb.6:
	mov	x0, x19
	bl	_rf_init2
	cbnz	w0, LBB0_4
; %bb.7:
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	bl	_rf_init2
	cbnz	w0, LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_load_cfg_mem
	cbnz	w0, LBB0_4
; %bb.10:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x0, [x19, #16]
	bl	_load_cfg_mem
	cbnz	w0, LBB0_4
; %bb.12:
	ldr	x8, [x19]
	ldr	x9, [x20]
LBB0_13:
Lloh8:
	adrp	x10, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	str	x10, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
	ldr	x8, [x19, #16]
	str	x10, [x8, #8]
	b	LBB0_4
LBB0_15:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ; @CXD2880_TNRDMD_STATE_SLEEP
.subsections_via_symbols
