	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxusb_medion_register_analog   ## -- Begin function cxusb_medion_register_analog
	.p2align	4, 0x90
_cxusb_medion_register_analog:          ## @cxusb_medion_register_analog
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	leaq	28(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_init
	leaq	8(%r14), %r13
	movq	%r13, %rdi
	callq	_init_completion
	movq	_cxusb_medion_v4l2_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%r14), %r15
	movl	%eax, 12(%r14)
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_destroy
	jmp	LBB0_8
LBB0_2:
	movq	%r12, %rdi
	callq	_cxusb_medion_register_analog_subdevs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	leaq	24(%r14), %rdi
	movq	_cxusb_medion_v_complete_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	20(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movabsq	$1030792151360, %rax            ## imm = 0xF000000140
	movq	%rax, (%r14)
	movq	%r12, %rdi
	callq	_cxusb_medion_register_analog_video
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_cxusb_medion_register_analog_radio
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	16(%r14), %edi
	callq	_video_unregister_device
LBB0_7:
	movq	%r15, %rdi
	callq	_v4l2_device_put
	movq	%r13, %rdi
	callq	_wait_for_completion
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_cxusb_medion_v4l2_release,4,2  ## @cxusb_medion_v4l2_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V4L2 device registration failed, ret = %d\n"

	.comm	_cxusb_medion_v_complete_work,4,2 ## @cxusb_medion_v_complete_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxusb_medion_register_analog
lCPI0_0:
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cxusb_medion_register_analog
	.p2align	2
_cxusb_medion_register_analog:          ; @cxusb_medion_register_analog
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x24, [x0, #8]
	add	x23, x24, #28
	mov	x0, x23
	bl	_mutex_init
	add	x19, x24, #8
	mov	x0, x19
	bl	_init_completion
Lloh0:
	adrp	x8, _cxusb_medion_v4l2_release@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cxusb_medion_v4l2_release@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x20, x24
	str	w8, [x20, #12]!
	ldr	x0, [x21]
	mov	x1, x20
	bl	_v4l2_device_register
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x0, [x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	mov	x0, x23
	bl	_mutex_destroy
	b	LBB0_7
LBB0_2:
	mov	x0, x21
	bl	_cxusb_medion_register_analog_subdevs
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
	add	x0, x24, #24
Lloh5:
	adrp	x8, _cxusb_medion_v_complete_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cxusb_medion_v_complete_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x24, #20
	bl	_INIT_LIST_HEAD
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x24]
	mov	x0, x21
	bl	_cxusb_medion_register_analog_video
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_cxusb_medion_register_analog_radio
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x24, #16]
	bl	_video_unregister_device
LBB0_6:
	mov	x0, x20
	bl	_v4l2_device_put
	mov	x0, x19
	bl	_wait_for_completion
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cxusb_medion_v4l2_release,4,2  ; @cxusb_medion_v4l2_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V4L2 device registration failed, ret = %d\n"

	.comm	_cxusb_medion_v_complete_work,4,2 ; @cxusb_medion_v_complete_work
.subsections_via_symbols
