	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netup_unidvb_ci_setup
_netup_unidvb_ci_setup:                 ## @netup_unidvb_ci_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_NETUP_UNIDVB_IRQ_CI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_IMASK_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writew
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_netup_unidvb_ci_register
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_netup_unidvb_ci_register
	movl	%eax, %r14d
	movl	$0, %eax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_netup_unidvb_ci_unregister
	movl	%r14d, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETUP_UNIDVB_IRQ_CI,4,2        ## @NETUP_UNIDVB_IRQ_CI
	.comm	_REG_IMASK_SET,8,3              ## @REG_IMASK_SET
	.no_dead_strip	_netup_unidvb_ci_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netup_unidvb_ci_setup
_netup_unidvb_ci_setup:                 ; @netup_unidvb_ci_setup
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NETUP_UNIDVB_IRQ_CI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETUP_UNIDVB_IRQ_CI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _REG_IMASK_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_IMASK_SET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_netup_unidvb_ci_register
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_netup_unidvb_ci_register
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_netup_unidvb_ci_unregister
LBB0_3:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETUP_UNIDVB_IRQ_CI,4,2        ; @NETUP_UNIDVB_IRQ_CI
	.comm	_REG_IMASK_SET,8,3              ; @REG_IMASK_SET
	.no_dead_strip	_netup_unidvb_ci_setup
.subsections_via_symbols
