	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_read_block_err_t
_cxd2880_read_block_err_t:              ## @cxd2880_read_block_err_t
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.5:
	movq	8(%rbx), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	movq	16(%rbx), %rax
	movq	_CXD2880_DTV_SYS_DVBT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.7:
	movq	24(%rbx), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	movl	$13, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	24(%rbx), %rdi
	movl	(%r12), %esi
	leaq	-52(%rbp), %rcx
	movl	$24, %edx
	movl	$3, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	testb	$1, -52(%rbp)
	jne	LBB0_10
LBB0_13:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	-48(%rbp), %eax
	shll	$8, %eax
	orl	-44(%rbp), %eax
	movl	%eax, (%r15)
	movq	24(%rbx), %rdi
	movl	(%r12), %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	24(%rbx), %rdi
	movl	(%r12), %esi
	leaq	-52(%rbp), %rcx
	movl	$1, %ebx
	movl	$92, %edx
	movl	$1, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movb	-52(%rbp), %cl
	andb	$15, %cl
	shll	%cl, %ebx
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	cmpl	%ebx, (%r15)
	jg	LBB0_13
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT,8,3       ## @CXD2880_DTV_SYS_DVBT
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_cxd2880_read_block_err_t
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_read_block_err_t
_cxd2880_read_block_err_t:              ; @cxd2880_read_block_err_t
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_10
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.4:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x21, #16]
Lloh9:
	adrp	x9, _CXD2880_DTV_SYS_DVBT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CXD2880_DTV_SYS_DVBT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x0, [x21, #24]
	ldr	x8, [x0]
Lloh12:
	adrp	x22, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh13:
	ldr	x22, [x22, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	mov	w3, #13
	blr	x8
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	x0, [x21, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x22]
	add	x3, sp, #12
	mov	w2, #24
	mov	w4, #3
	blr	x8
	cbnz	w0, LBB0_12
; %bb.8:
	ldrb	w8, [sp, #12]
	tbnz	w8, #0, LBB0_14
LBB0_9:
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.13:
	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
	add	sp, sp, #80
	ret
LBB0_14:
	ldp	w8, w9, [sp, #16]
	orr	w8, w9, w8, lsl #8
	str	w8, [x19]
	ldr	x0, [x21, #24]
	ldr	x8, [x0]
	ldr	w1, [x22]
	mov	w2, #0
	mov	w3, #16
	blr	x8
	cbnz	w0, LBB0_12
; %bb.15:
	ldr	x0, [x21, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x22]
	mov	w21, #1
	add	x3, sp, #12
	mov	w2, #92
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_12
; %bb.16:
	ldr	w8, [sp, #12]
	and	x8, x8, #0xf
	lsl	w8, w21, w8
	str	w8, [x20]
	ldr	w9, [x19]
	cmp	w9, w8
	b.gt	LBB0_9
; %bb.17:
	mov	w0, #0
	b	LBB0_12
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT,8,3       ; @CXD2880_DTV_SYS_DVBT
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_cxd2880_read_block_err_t
.subsections_via_symbols
