	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_check_l1post_plp
_cxd2880_check_l1post_plp:              ## @cxd2880_check_l1post_plp
	.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
	movq	$0, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %r14
	leaq	4(%r14), %rbx
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_dvbt2_check_l1post_valid
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	cmpq	$0, -24(%rbp)
	je	LBB0_4
## %bb.6:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_dvbt2_mon_data_plp_error
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	cmpq	$0, -32(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_9:
	movq	_CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID,4,2 ## @CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID
	.comm	_CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK,4,2 ## @CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK
	.no_dead_strip	_cxd2880_check_l1post_plp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_check_l1post_plp
_cxd2880_check_l1post_plp:              ; @cxd2880_check_l1post_plp
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x20, [x0]
	add	x19, x20, #4
	add	x1, sp, #8
	mov	x0, x19
	bl	_cxd2880_tnrdmd_dvbt2_check_l1post_valid
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x1, sp
	mov	x0, x19
	bl	_cxd2880_tnrdmd_dvbt2_mon_data_plp_error
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [sp]
	cbz	x8, LBB0_10
; %bb.5:
	mov	w0, #0
Lloh0:
	adrp	x8, _CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
Lloh8:
	adrp	x8, _CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID,4,2 ; @CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID
	.comm	_CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK,4,2 ; @CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK
	.no_dead_strip	_cxd2880_check_l1post_plp
.subsections_via_symbols
