	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_sleep           ## -- Begin function cxd2880_tnrdmd_sleep
	.p2align	4, 0x90
_cxd2880_tnrdmd_sleep:                  ## @cxd2880_tnrdmd_sleep
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rcx
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	cmpq	(%r14), %rcx
	je	LBB0_24
## %bb.4:
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cxd2880_tnrdmd_set_ts_output
	testl	%eax, %eax
	jne	LBB0_24
## %bb.6:
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_x_sleep1
	testl	%eax, %eax
	jne	LBB0_24
LBB0_8:
	movq	%rbx, %rdi
	callq	_x_sleep2
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.10:
	movq	32(%rbx), %rdi
	callq	_x_sleep2
	testl	%eax, %eax
	jne	LBB0_24
LBB0_11:
	movl	16(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_25
## %bb.12:
	cmpl	$129, %eax
	jne	LBB0_1
## %bb.13:
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_dvbt_sleep_setting
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_dvbt2_sleep_setting
LBB0_14:
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	movq	%rbx, %rdi
	callq	_x_sleep3
	testl	%eax, %eax
	jne	LBB0_24
## %bb.16:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_18
## %bb.17:
	movq	32(%rbx), %rdi
	callq	_x_sleep3
	testl	%eax, %eax
	jne	LBB0_24
LBB0_18:
	movq	%rbx, %rdi
	callq	_x_sleep4
	testl	%eax, %eax
	jne	LBB0_24
## %bb.19:
	movq	(%rbx), %rcx
	movq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_22
## %bb.20:
	movq	32(%rbx), %rdi
	callq	_x_sleep4
	testl	%eax, %eax
	jne	LBB0_24
## %bb.21:
	movq	(%rbx), %rcx
	movq	(%r15), %rdx
LBB0_22:
	movq	(%r14), %r8
	movq	%r8, 8(%rbx)
	movq	$0, 40(%rbx)
	movq	_CXD2880_DTV_SYS_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%rbx)
	movq	_CXD2880_DTV_BW_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 24(%rbx)
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jne	LBB0_24
## %bb.23:
	movq	32(%rbx), %rcx
	movq	%r8, 8(%rcx)
	movq	$0, 40(%rcx)
	movl	%edi, 16(%rcx)
	movq	%rsi, 24(%rcx)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ## @CXD2880_TNRDMD_STATE_SLEEP
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_DTV_SYS_UNKNOWN,8,3    ## @CXD2880_DTV_SYS_UNKNOWN
	.comm	_CXD2880_DTV_BW_UNKNOWN,8,3     ## @CXD2880_DTV_BW_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_sleep           ; -- Begin function cxd2880_tnrdmd_sleep
	.p2align	2
_cxd2880_tnrdmd_sleep:                  ; @cxd2880_tnrdmd_sleep
	.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
	cbz	x0, LBB0_14
; %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.eq	LBB0_14
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x20, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_15
LBB0_4:
Lloh5:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_cxd2880_tnrdmd_set_ts_output
	cbnz	w0, LBB0_15
; %bb.6:
	ldr	x8, [x19]
Lloh8:
	adrp	x21, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_x_sleep1
	cbnz	w0, LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_x_sleep2
	cbnz	w0, LBB0_15
; %bb.9:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x19, #32]
	bl	_x_sleep2
	cbnz	w0, LBB0_15
LBB0_11:
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.12:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_cxd2880_tnrdmd_dvbt_sleep_setting
	cbnz	w0, LBB0_15
	b	LBB0_17
LBB0_14:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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_16:
	mov	x0, x19
	bl	_cxd2880_tnrdmd_dvbt2_sleep_setting
	cbnz	w0, LBB0_15
LBB0_17:
	mov	x0, x19
	bl	_x_sleep3
	cbnz	w0, LBB0_15
; %bb.18:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	ldr	x0, [x19, #32]
	bl	_x_sleep3
	cbnz	w0, LBB0_15
LBB0_20:
	mov	x0, x19
	bl	_x_sleep4
	cbnz	w0, LBB0_15
; %bb.21:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
	ldr	x0, [x19, #32]
	bl	_x_sleep4
	cbnz	w0, LBB0_15
; %bb.23:
	ldr	x8, [x19]
	ldr	x9, [x21]
LBB0_24:
	ldr	x10, [x20]
	str	x10, [x19, #8]
	str	xzr, [x19, #40]
Lloh13:
	adrp	x11, _CXD2880_DTV_SYS_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CXD2880_DTV_SYS_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	str	w11, [x19, #16]
Lloh16:
	adrp	x12, _CXD2880_DTV_BW_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x12, [x12, _CXD2880_DTV_BW_UNKNOWN@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x12]
	str	x12, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.25:
	mov	w0, #0
	ldr	x8, [x19, #32]
	str	x10, [x8, #8]
	str	xzr, [x8, #40]
	str	w11, [x8, #16]
	str	x12, [x8, #24]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ; @CXD2880_TNRDMD_STATE_SLEEP
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_DTV_SYS_UNKNOWN,8,3    ; @CXD2880_DTV_SYS_UNKNOWN
	.comm	_CXD2880_DTV_BW_UNKNOWN,8,3     ; @CXD2880_DTV_BW_UNKNOWN
.subsections_via_symbols
