	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ciintf_poll_slot_status
_ciintf_poll_slot_status:               ## @ciintf_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	4(%rbx), %rdi
	movq	_DEBICICTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEBIADDR_CICONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_ttpci_budget_debiread
	movq	_CICONTROL_CAMDETECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.3:
	movl	(%rbx), %ecx
	movq	_SLOTSTATUS_NONE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_SLOTSTATUS_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_5:
	movq	_SLOTSTATUS_RESET@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ciintf_read_attribute_mem
	cmpl	$29, %eax
	jne	LBB0_7
## %bb.8:
	movq	_SLOTSTATUS_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_9:
	movq	_SLOTSTATUS_NONE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_11
LBB0_7:
	movl	(%rbx), %ecx
LBB0_11:
	movq	_SLOTSTATUS_NONE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_14
## %bb.12:
	movq	_SLOTSTATUS_READY@GOTPCREL(%rip), %rdx
	movq	_DVB_CA_EN50221_POLL_CAM_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_DVB_CA_EN50221_POLL_CAM_READY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DEBICICTL,4,2                  ## @DEBICICTL
	.comm	_DEBIADDR_CICONTROL,4,2         ## @DEBIADDR_CICONTROL
	.comm	_CICONTROL_CAMDETECT,4,2        ## @CICONTROL_CAMDETECT
	.comm	_SLOTSTATUS_NONE,4,2            ## @SLOTSTATUS_NONE
	.comm	_SLOTSTATUS_PRESENT,4,2         ## @SLOTSTATUS_PRESENT
	.comm	_SLOTSTATUS_RESET,4,2           ## @SLOTSTATUS_RESET
	.comm	_SLOTSTATUS_READY,4,2           ## @SLOTSTATUS_READY
	.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	_ciintf_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 ciintf_poll_slot_status
_ciintf_poll_slot_status:               ; @ciintf_poll_slot_status
	.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
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x21
	ldr	w8, [x0, #4]!
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _DEBICICTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBICICTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DEBIADDR_CICONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBIADDR_CICONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	bl	_ttpci_budget_debiread
Lloh6:
	adrp	x8, _CICONTROL_CAMDETECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CICONTROL_CAMDETECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x22, _SLOTSTATUS_NONE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SLOTSTATUS_NONE@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _SLOTSTATUS_PRESENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SLOTSTATUS_PRESENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_4:
Lloh14:
	adrp	x9, _SLOTSTATUS_RESET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SLOTSTATUS_RESET@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_ciintf_read_attribute_mem
	cmp	w0, #29
	b.ne	LBB0_10
; %bb.6:
Lloh17:
	adrp	x8, _SLOTSTATUS_READY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SLOTSTATUS_READY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_8:
	ldr	w8, [x22]
LBB0_9:
	str	w8, [x21]
	b	LBB0_11
LBB0_10:
	ldr	w8, [x21]
LBB0_11:
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh23:
	adrp	x9, _SLOTSTATUS_READY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SLOTSTATUS_READY@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _DVB_CA_EN50221_POLL_CAM_PRESENT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _DVB_CA_EN50221_POLL_CAM_PRESENT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x10]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _DVB_CA_EN50221_POLL_CAM_READY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DVB_CA_EN50221_POLL_CAM_READY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w0, w8, w0
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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DEBICICTL,4,2                  ; @DEBICICTL
	.comm	_DEBIADDR_CICONTROL,4,2         ; @DEBIADDR_CICONTROL
	.comm	_CICONTROL_CAMDETECT,4,2        ; @CICONTROL_CAMDETECT
	.comm	_SLOTSTATUS_NONE,4,2            ; @SLOTSTATUS_NONE
	.comm	_SLOTSTATUS_PRESENT,4,2         ; @SLOTSTATUS_PRESENT
	.comm	_SLOTSTATUS_RESET,4,2           ; @SLOTSTATUS_RESET
	.comm	_SLOTSTATUS_READY,4,2           ; @SLOTSTATUS_READY
	.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	_ciintf_poll_slot_status
.subsections_via_symbols
