	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_power_ctrl
_cxusb_power_ctrl:                      ## @cxusb_power_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testl	%esi, %esi
	jne	LBB0_6
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_cxusb_table@GOTPCREL(%rip), %rcx
	movq	_MEDION_MD95700@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	(%r15), %rbx
	leaq	8(%rbx), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_CXUSB_OPEN_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__cxusb_power_ctrl              ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__cxusb_power_ctrl
	movl	%eax, %r14d
LBB0_5:
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cxusb_table,8,3                ## @cxusb_table
	.comm	_MEDION_MD95700,8,3             ## @MEDION_MD95700
	.comm	_CXUSB_OPEN_ANALOG,8,3          ## @CXUSB_OPEN_ANALOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"preventing DVB core from setting power OFF while we are in analog mode\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cxusb_power_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_power_ctrl
_cxusb_power_ctrl:                      ; @cxusb_power_ctrl
	.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
	cbnz	w1, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _cxusb_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cxusb_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MEDION_MD95700@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MEDION_MD95700@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x20, [x19]
	add	x0, x20, #8
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _CXUSB_OPEN_ANALOG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXUSB_OPEN_ANALOG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__cxusb_power_ctrl
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	__cxusb_power_ctrl
	mov	x20, x0
LBB0_6:
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cxusb_table,8,3                ; @cxusb_table
	.comm	_MEDION_MD95700,8,3             ; @MEDION_MD95700
	.comm	_CXUSB_OPEN_ANALOG,8,3          ; @CXUSB_OPEN_ANALOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"preventing DVB core from setting power OFF while we are in analog mode\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cxusb_power_ctrl
.subsections_via_symbols
