	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_init1           ## -- Begin function cxd2880_tnrdmd_init1
	.p2align	4, 0x90
_cxd2880_tnrdmd_init1:                  ## @cxd2880_tnrdmd_init1
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_23
LBB0_4:
	movq	_CXD2880_TNRDMD_CHIP_ID_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	16(%rbx), %r14
	movq	%rax, 16(%rbx)
	movq	_CXD2880_TNRDMD_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movq	_CXD2880_TNRDMD_CLOCKMODE_UNKNOWN@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	_CXD2880_DTV_SYS_UNKNOWN@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 48(%rbx)
	movq	_CXD2880_DTV_BW_UNKNOWN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, 40(%rbx)
	movq	$0, 32(%rbx)
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_CXD2880_TNRDMD_CHIP_ID_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rdi
	movq	%rax, 16(%rdi)
	movq	_CXD2880_TNRDMD_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rdi)
	movq	(%r15), %rax
	movq	%rax, 64(%rdi)
	movq	$0, 56(%rdi)
	movq	(%r12), %rax
	movq	%rax, 48(%rdi)
	movq	(%r13), %rax
	movq	%rax, 40(%rdi)
	movq	$0, 32(%rdi)
	addq	$24, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cxd2880_tnrdmd_chip_id
	testl	%eax, %eax
	je	LBB0_7
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rdi
	callq	_CXD2880_TNRDMD_CHIP_ID_VALID
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movq	8(%rbx), %rdi
	leaq	16(%rdi), %rsi
	callq	_cxd2880_tnrdmd_chip_id
	testl	%eax, %eax
	jne	LBB0_23
## %bb.11:
	movq	8(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_CXD2880_TNRDMD_CHIP_ID_VALID
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	movq	%rbx, %rdi
	callq	_p_init1
	testl	%eax, %eax
	jne	LBB0_23
## %bb.13:
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	8(%rbx), %rdi
	callq	_p_init1
	testl	%eax, %eax
	jne	LBB0_23
LBB0_15:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	8(%rbx), %rdi
	callq	_p_init2
	testl	%eax, %eax
	jne	LBB0_23
LBB0_17:
	movq	%rbx, %rdi
	callq	_p_init2
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_p_init3
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	8(%rbx), %rdi
	callq	_p_init3
	testl	%eax, %eax
	jne	LBB0_23
LBB0_21:
	movq	%rbx, %rdi
	callq	_rf_init1
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_23
## %bb.24:
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rf_init1                       ## TAILCALL
LBB0_8:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_CHIP_ID_UNKNOWN,8,3 ## @CXD2880_TNRDMD_CHIP_ID_UNKNOWN
	.comm	_CXD2880_TNRDMD_STATE_UNKNOWN,8,3 ## @CXD2880_TNRDMD_STATE_UNKNOWN
	.comm	_CXD2880_TNRDMD_CLOCKMODE_UNKNOWN,8,3 ## @CXD2880_TNRDMD_CLOCKMODE_UNKNOWN
	.comm	_CXD2880_DTV_SYS_UNKNOWN,8,3    ## @CXD2880_DTV_SYS_UNKNOWN
	.comm	_CXD2880_DTV_BW_UNKNOWN,8,3     ## @CXD2880_DTV_BW_UNKNOWN
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_ENOTTY,4,2                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_init1           ; -- Begin function cxd2880_tnrdmd_init1
	.p2align	2
_cxd2880_tnrdmd_init1:                  ; @cxd2880_tnrdmd_init1
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x22, _CXD2880_TNRDMD_CHIP_ID_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CXD2880_TNRDMD_CHIP_ID_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	x20, x19
	str	x8, [x20, #16]!
Lloh7:
	adrp	x23, _CXD2880_TNRDMD_STATE_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CXD2880_TNRDMD_STATE_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh9:
	adrp	x24, _CXD2880_TNRDMD_CLOCKMODE_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _CXD2880_TNRDMD_CLOCKMODE_UNKNOWN@GOTPAGEOFF]
	ldr	x9, [x24]
	stp	x9, x8, [x19, #64]
Lloh11:
	adrp	x25, _CXD2880_DTV_SYS_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x25, [x25, _CXD2880_DTV_SYS_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x25]
	stp	x8, xzr, [x19, #48]
Lloh13:
	adrp	x26, _CXD2880_DTV_BW_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x26, [x26, _CXD2880_DTV_BW_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x26]
	stp	xzr, x8, [x19, #32]
	add	x0, x19, #24
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19]
Lloh15:
	adrp	x21, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh16:
	ldr	x21, [x21, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	str	x8, [x9, #16]
	ldr	x8, [x23]
	ldr	x10, [x24]
	stp	x10, x8, [x9, #64]
	ldr	x8, [x25]
	stp	x8, xzr, [x9, #48]
	ldr	x8, [x26]
	add	x0, x9, #24
	stp	xzr, x8, [x9, #32]
	mov	w1, #0
	bl	_atomic_set
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_cxd2880_tnrdmd_chip_id
	cbz	w0, LBB0_8
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x0, [x20]
	bl	_CXD2880_TNRDMD_CHIP_ID_VALID
	cbz	w0, LBB0_24
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x0, [x19, #8]
	add	x1, x0, #16
	bl	_cxd2880_tnrdmd_chip_id
	cbnz	w0, LBB0_7
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	bl	_CXD2880_TNRDMD_CHIP_ID_VALID
	cbz	w0, LBB0_24
LBB0_12:
	mov	x0, x19
	bl	_p_init1
	cbnz	w0, LBB0_7
; %bb.13:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	ldr	x0, [x19, #8]
	bl	_p_init1
	cbnz	w0, LBB0_7
LBB0_15:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	ldr	x0, [x19, #8]
	bl	_p_init2
	cbnz	w0, LBB0_7
LBB0_17:
	mov	x0, x19
	bl	_p_init2
	cbnz	w0, LBB0_7
; %bb.18:
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	mov	x0, x19
	bl	_p_init3
	cbnz	w0, LBB0_7
; %bb.19:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	ldr	x0, [x19, #8]
	bl	_p_init3
	cbnz	w0, LBB0_7
LBB0_21:
	mov	x0, x19
	bl	_rf_init1
	cbnz	w0, LBB0_7
; %bb.22:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.23:
	ldr	x0, [x19, #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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rf_init1
LBB0_24:
Lloh17:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_3
LBB0_25:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_CHIP_ID_UNKNOWN,8,3 ; @CXD2880_TNRDMD_CHIP_ID_UNKNOWN
	.comm	_CXD2880_TNRDMD_STATE_UNKNOWN,8,3 ; @CXD2880_TNRDMD_STATE_UNKNOWN
	.comm	_CXD2880_TNRDMD_CLOCKMODE_UNKNOWN,8,3 ; @CXD2880_TNRDMD_CLOCKMODE_UNKNOWN
	.comm	_CXD2880_DTV_SYS_UNKNOWN,8,3    ; @CXD2880_DTV_SYS_UNKNOWN
	.comm	_CXD2880_DTV_BW_UNKNOWN,8,3     ; @CXD2880_DTV_BW_UNKNOWN
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_ENOTTY,4,2                     ; @ENOTTY
.subsections_via_symbols
