	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tt3650_ci_poll_slot_status
_tt3650_ci_poll_slot_status:            ## @tt3650_ci_poll_slot_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_TT3650_CMD_CI_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_tt3650_ci_msg_locked
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	cmpl	$1, -4(%rbp)
	movl	$0, %eax
	jne	LBB0_5
## %bb.4:
	movq	_DVB_CA_EN50221_POLL_CAM_PRESENT@GOTPCREL(%rip), %rcx
	movq	_DVB_CA_EN50221_POLL_CAM_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TT3650_CMD_CI_TEST,4,2         ## @TT3650_CMD_CI_TEST
	.comm	_DVB_CA_EN50221_POLL_CAM_PRESENT,4,2 ## @DVB_CA_EN50221_POLL_CAM_PRESENT
	.comm	_DVB_CA_EN50221_POLL_CAM_READY,4,2 ## @DVB_CA_EN50221_POLL_CAM_READY
	.no_dead_strip	_tt3650_ci_poll_slot_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tt3650_ci_poll_slot_status
_tt3650_ci_poll_slot_status:            ; @tt3650_ci_poll_slot_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _TT3650_CMD_CI_TEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TT3650_CMD_CI_TEST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #4
	mov	w3, #0
	mov	w4, #1
	bl	_tt3650_ci_msg_locked
	cbnz	w0, LBB0_6
; %bb.3:
	ldur	w8, [x29, #-4]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _DVB_CA_EN50221_POLL_CAM_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DVB_CA_EN50221_POLL_CAM_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DVB_CA_EN50221_POLL_CAM_READY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DVB_CA_EN50221_POLL_CAM_READY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TT3650_CMD_CI_TEST,4,2         ; @TT3650_CMD_CI_TEST
	.comm	_DVB_CA_EN50221_POLL_CAM_PRESENT,4,2 ; @DVB_CA_EN50221_POLL_CAM_PRESENT
	.comm	_DVB_CA_EN50221_POLL_CAM_READY,4,2 ; @DVB_CA_EN50221_POLL_CAM_READY
	.no_dead_strip	_tt3650_ci_poll_slot_status
.subsections_via_symbols
