	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_ci_attach                  ## -- Begin function ddb_ci_attach
	.p2align	4, 0x90
_ddb_ci_attach:                         ## @ddb_ci_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.1:
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ci_cxd2099_attach
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_ci_xo2_attach
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_ci_attach
LBB0_7:
	movl	4(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.8:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_dvb_ca_en50221_init
	jmp	LBB0_9
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ddb_ci_attach                  ; -- Begin function ddb_ci_attach
	.p2align	2
_ddb_ci_attach:                         ; @ddb_ci_attach
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_ci_cxd2099_attach
	cbnz	w0, LBB0_8
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_ci_xo2_attach
LBB0_5:
	ldr	w1, [x19, #4]
	cbz	w1, LBB0_8
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_dvb_ca_en50221_init
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_ci_attach
	ldr	w1, [x19, #4]
	cbnz	w1, LBB0_6
LBB0_8:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
