	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbsky_ci_ctrl
_dvbsky_ci_ctrl:                        ## @dvbsky_ci_ctrl
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movzbl	%dh, %eax
	movl	%eax, -44(%rbp)
	movzbl	%dl, %eax
	movl	%eax, -40(%rbp)
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	movq	%r8, %r14
	movl	$113, -48(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	$3, %edx
	movl	$2, %r8d
	callq	_dvbsky_usb_generic_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-52(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	$112, -48(%rbp)
	movl	%ecx, -36(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$1, %r8d
	callq	_dvbsky_usb_generic_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ci control failed=%d\n"

	.no_dead_strip	_dvbsky_ci_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbsky_ci_ctrl
_dvbsky_ci_ctrl:                        ; @dvbsky_ci_ctrl
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ubfx	w8, w2, #8, #8
	and	w9, w2, #0xff
	stp	w8, w9, [sp, #12]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x21, x4
	mov	w8, #113
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x19
	mov	w2, #3
	mov	w4, #2
	bl	_dvbsky_usb_generic_rw
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #4]
	str	w8, [x21]
	b	LBB0_5
LBB0_3:
	mov	w8, #112
	str	w8, [sp, #8]
	str	w3, [sp, #20]
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x19
	mov	w2, #4
	mov	w4, #1
	bl	_dvbsky_usb_generic_rw
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ci control failed=%d\n"

	.no_dead_strip	_dvbsky_ci_ctrl
.subsections_via_symbols
