	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_register_analog_radio
_cxusb_medion_register_analog_radio:    ## @cxusb_medion_register_analog_radio
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_radiocaps@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	movq	_cxusb_radio_fops@GOTPCREL(%rip), %rcx
	movq	%rcx, 40(%rax)
	leaq	12(%rbx), %rcx
	movq	%rcx, 32(%rax)
	movl	28(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdi
	movl	%eax, 24(%rdi)
	movq	_cxusb_radio_ioctl@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	_video_device_release@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	leaq	8(%rbx), %rax
	movq	%rax, (%rdi)
	movq	%r15, %rsi
	callq	_video_set_drvdata
	movq	(%rbx), %rdi
	movq	_VFL_TYPE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%rbx), %rdi
	callq	_video_device_release
	movl	%r12d, %r14d
	jmp	LBB0_4
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"radio device alloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_radiocaps,4,2                  ## @radiocaps
	.comm	_cxusb_radio_fops,4,2           ## @cxusb_radio_fops
L_.str.1:                               ## @.str.1
	.asciz	"cxusb"

	.comm	_VFL_DIR_RX,4,2                 ## @VFL_DIR_RX
	.comm	_cxusb_radio_ioctl,4,2          ## @cxusb_radio_ioctl
	.comm	_VFL_TYPE_RADIO,4,2             ## @VFL_TYPE_RADIO
L_.str.2:                               ## @.str.2
	.asciz	"radio device register failed, ret = %d\n"

	.no_dead_strip	_cxusb_medion_register_analog_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_register_analog_radio
_cxusb_medion_register_analog_radio:    ; @cxusb_medion_register_analog_radio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_video_device_alloc
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _radiocaps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _radiocaps@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #48]
Lloh3:
	adrp	x8, _cxusb_radio_fops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cxusb_radio_fops@GOTPAGEOFF]
	add	x9, x21, #12
	stp	x9, x8, [x0, #32]
	ldr	w0, [x0, #28]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh7:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x0, [x21]
	str	w8, [x0, #24]
Lloh10:
	adrp	x8, _cxusb_radio_ioctl@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cxusb_radio_ioctl@GOTPAGEOFF]
	str	x8, [x0, #16]
Lloh12:
	adrp	x8, _video_device_release@GOTPAGE
Lloh13:
	ldr	x8, [x8, _video_device_release@GOTPAGEOFF]
	add	x9, x21, #8
	stp	x9, x8, [x0]
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	x0, [x21]
Lloh14:
	adrp	x8, _VFL_TYPE_RADIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VFL_TYPE_RADIO@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_video_register_device
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x0, [x21]
	bl	_video_device_release
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radio device alloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_radiocaps,4,2                  ; @radiocaps
	.comm	_cxusb_radio_fops,4,2           ; @cxusb_radio_fops
l_.str.1:                               ; @.str.1
	.asciz	"cxusb"

	.comm	_VFL_DIR_RX,4,2                 ; @VFL_DIR_RX
	.comm	_cxusb_radio_ioctl,4,2          ; @cxusb_radio_ioctl
	.comm	_VFL_TYPE_RADIO,4,2             ; @VFL_TYPE_RADIO
l_.str.2:                               ; @.str.2
	.asciz	"radio device register failed, ret = %d\n"

	.no_dead_strip	_cxusb_medion_register_analog_radio
.subsections_via_symbols
