	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function usb_amradio_probe
LCPI0_0:
	.quad	0x4057ca3d70a3d70a              ## double 95.159999999999996
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_usb_amradio_probe:                     ## @usb_amradio_probe
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	_BUFFER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	56(%r12), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movl	32(%rax), %edi
	movl	56(%r12), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	24(%r12), %rax
	movq	%r15, 24(%rax)
	movq	_usb_amradio_fops@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	_usb_amradio_ioctl_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_usb_amradio_video_device_release@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 36(%r12)
	movq	_FREQ_MUL@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%r12)
	movl	$-1, 8(%r12)
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	24(%r12), %rdi
	movq	%r12, %rsi
	callq	_video_set_drvdata
	movq	24(%r12), %rdi
	movq	_VFL_TYPE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_radio_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_kfree
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	24(%r12), %rdi
	callq	_video_device_release
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
	movq	16(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kmalloc for amradio_device failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUFFER_LENGTH,4,2              ## @BUFFER_LENGTH
L_.str.1:                               ## @.str.1
	.asciz	"kmalloc for radio->buffer failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't register v4l2_device\n"

L_.str.3:                               ## @.str.3
	.asciz	"video_device_alloc failed\n"

	.comm	_usb_amradio_fops,4,2           ## @usb_amradio_fops
	.comm	_usb_amradio_ioctl_ops,4,2      ## @usb_amradio_ioctl_ops
	.comm	_usb_amradio_video_device_release,4,2 ## @usb_amradio_video_device_release
	.comm	_FREQ_MUL,8,3                   ## @FREQ_MUL
	.comm	_VFL_TYPE_RADIO,4,2             ## @VFL_TYPE_RADIO
	.comm	_radio_nr,4,2                   ## @radio_nr
L_.str.4:                               ## @.str.4
	.asciz	"could not register video device\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_usb_amradio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_amradio_probe
_usb_amradio_probe:                     ; @usb_amradio_probe
	.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, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _BUFFER_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BUFFER_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
	add	x21, x19, #56
	mov	x0, x20
	mov	x1, x21
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_8
; %bb.3:
	bl	_video_device_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x0, #32]
	ldr	w1, [x19, #56]
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [x19, #24]
	str	x21, [x8, #24]
Lloh5:
	adrp	x9, _usb_amradio_fops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _usb_amradio_fops@GOTPAGEOFF]
Lloh7:
	adrp	x10, _usb_amradio_ioctl_ops@GOTPAGE
Lloh8:
	ldr	x10, [x10, _usb_amradio_ioctl_ops@GOTPAGEOFF]
	stp	x10, x9, [x8, #8]
Lloh9:
	adrp	x9, _usb_amradio_video_device_release@GOTPAGE
Lloh10:
	ldr	x9, [x9, _usb_amradio_video_device_release@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x8]
	stp	xzr, xzr, [x19, #40]
	mov	x0, x20
	bl	_interface_to_usbdev
	str	w0, [x19, #36]
Lloh12:
	adrp	x8, _FREQ_MUL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FREQ_MUL@GOTPAGEOFF]
Lloh14:
	ldr	d0, [x8]
	mov	x8, #55050
	movk	x8, #28835, lsl #16
	movk	x8, #51773, lsl #32
	movk	x8, #16471, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	str	d0, [x19]
	mov	w8, #-1
	str	w8, [x19, #8]
	add	x0, x19, #32
	bl	_mutex_init
	ldr	x0, [x19, #24]
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	x0, [x19, #24]
Lloh15:
	adrp	x8, _VFL_TYPE_RADIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VFL_TYPE_RADIO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _radio_nr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _radio_nr@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_video_register_device
	tbnz	w0, #31, LBB0_14
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	mov	w22, #0
	b	LBB0_13
LBB0_6:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_11
LBB0_7:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_8:
	mov	x22, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	b	LBB0_13
LBB0_9:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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
LBB0_14:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #24]
	bl	_video_device_release
	mov	x0, x21
	bl	_v4l2_device_unregister
	ldr	x0, [x19, #16]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
Lloh33:
	adrp	x8, _EIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kmalloc for amradio_device failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUFFER_LENGTH,4,2              ; @BUFFER_LENGTH
l_.str.1:                               ; @.str.1
	.asciz	"kmalloc for radio->buffer failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't register v4l2_device\n"

l_.str.3:                               ; @.str.3
	.asciz	"video_device_alloc failed\n"

	.comm	_usb_amradio_fops,4,2           ; @usb_amradio_fops
	.comm	_usb_amradio_ioctl_ops,4,2      ; @usb_amradio_ioctl_ops
	.comm	_usb_amradio_video_device_release,4,2 ; @usb_amradio_video_device_release
	.comm	_FREQ_MUL,8,3                   ; @FREQ_MUL
	.comm	_VFL_TYPE_RADIO,4,2             ; @VFL_TYPE_RADIO
	.comm	_radio_nr,4,2                   ; @radio_nr
l_.str.4:                               ; @.str.4
	.asciz	"could not register video device\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_usb_amradio_probe
.subsections_via_symbols
