	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$112, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_BUFFER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	16(%r13), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	leaq	32(%r13), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	_usb_amradio_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	32(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_8:
	leaq	108(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_init
	movq	%r12, 24(%r13)
	movq	_usb_amradio_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	%r13, %rbx
	addq	$40, %rbx
	movl	16(%r13), %esi
	movl	88(%r13), %edi
	movl	$4, %edx
	callq	_strscpy
	movq	%r15, 80(%r13)
	movq	_usb_amradio_fops@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r13)
	movq	_usb_amradio_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r13)
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r13)
	movq	_V4L2_CAP_RADIO@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_TUNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_HW_FREQ_SEEK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 40(%r13)
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 104(%r13)
	movq	%r14, 96(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_usb_set_intfdata
	movq	_FREQ_MUL@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_video_set_drvdata
	movq	%r13, %rdi
	callq	_usb_amradio_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_12:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_13:
	movq	8(%r13), %rdi
	callq	_kfree
LBB0_14:
	movq	%r13, %rdi
	callq	_kfree
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_VFL_TYPE_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_radio_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_video_register_device
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_15
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ebx
	callq	_dev_err
	jmp	LBB0_11
	.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"

	.comm	_usb_amradio_ctrl_ops,4,2       ## @usb_amradio_ctrl_ops
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ## @V4L2_CID_AUDIO_MUTE
L_.str.3:                               ## @.str.3
	.asciz	"couldn't register control\n"

	.comm	_usb_amradio_release,4,2        ## @usb_amradio_release
	.comm	_usb_amradio_fops,4,2           ## @usb_amradio_fops
	.comm	_usb_amradio_ioctl_ops,4,2      ## @usb_amradio_ioctl_ops
	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.comm	_V4L2_CAP_RADIO,4,2             ## @V4L2_CAP_RADIO
	.comm	_V4L2_CAP_TUNER,4,2             ## @V4L2_CAP_TUNER
	.comm	_V4L2_CAP_HW_FREQ_SEEK,4,2      ## @V4L2_CAP_HW_FREQ_SEEK
	.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"

	.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	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	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #112
	bl	_kzalloc
	cbz	x0, LBB0_5
; %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, #8]
	cbz	x0, LBB0_6
; %bb.2:
	add	x21, x19, #16
	mov	x0, x20
	mov	x1, x21
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_7
; %bb.3:
	add	x22, x19, #32
	mov	x0, x22
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh5:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, _usb_amradio_ctrl_ops@GOTPAGE
Lloh9:
	ldr	x1, [x1, _usb_amradio_ctrl_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	ldr	w23, [x19, #32]
	cbz	w23, LBB0_8
; %bb.4:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_6:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_7:
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_11
LBB0_8:
	add	x23, x19, #108
	mov	x0, x23
	bl	_mutex_init
	str	x22, [x19, #24]
Lloh24:
	adrp	x8, _usb_amradio_release@GOTPAGE
Lloh25:
	ldr	x8, [x8, _usb_amradio_release@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [x19, #88]
	ldr	w1, [x19, #16]
	mov	w2, #4
	bl	_strscpy
Lloh27:
	adrp	x8, _V4L2_CAP_RADIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V4L2_CAP_RADIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _V4L2_CAP_TUNER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _V4L2_CAP_TUNER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _V4L2_CAP_HW_FREQ_SEEK@GOTPAGE
Lloh34:
	ldr	x10, [x10, _V4L2_CAP_HW_FREQ_SEEK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh35:
	ldr	w9, [x10]
	orr	w8, w8, w9
	mov	x24, x19
	str	w8, [x24, #40]!
	str	x21, [x19, #80]
Lloh36:
	adrp	x8, _usb_amradio_fops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _usb_amradio_fops@GOTPAGEOFF]
Lloh38:
	adrp	x9, _usb_amradio_ioctl_ops@GOTPAGE
Lloh39:
	ldr	x9, [x9, _usb_amradio_ioctl_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #64]
Lloh40:
	adrp	x8, _video_device_release_empty@GOTPAGE
Lloh41:
	ldr	x8, [x8, _video_device_release_empty@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	str	x23, [x19, #48]
	mov	x0, x20
	bl	_interface_to_usbdev
	str	w0, [x19, #104]
	str	x20, [x19, #96]
	mov	x0, x20
	mov	x1, x21
	bl	_usb_set_intfdata
Lloh43:
	adrp	x8, _FREQ_MUL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _FREQ_MUL@GOTPAGEOFF]
Lloh45:
	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	x0, x24
	mov	x1, x19
	bl	_video_set_drvdata
	mov	x0, x19
	bl	_usb_amradio_init
	mov	x23, x0
	cbz	w0, LBB0_14
LBB0_9:
	mov	x0, x22
	bl	_v4l2_ctrl_handler_free
LBB0_10:
	mov	x0, x21
	bl	_v4l2_device_unregister
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x23
	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
LBB0_14:
Lloh46:
	adrp	x8, _VFL_TYPE_RADIO@GOTPAGE
Lloh47:
	ldr	x8, [x8, _VFL_TYPE_RADIO@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _radio_nr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _radio_nr@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_video_register_device
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	w23, #0
	b	LBB0_13
LBB0_16:
	mov	x23, x0
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.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"

	.comm	_usb_amradio_ctrl_ops,4,2       ; @usb_amradio_ctrl_ops
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ; @V4L2_CID_AUDIO_MUTE
l_.str.3:                               ; @.str.3
	.asciz	"couldn't register control\n"

	.comm	_usb_amradio_release,4,2        ; @usb_amradio_release
	.comm	_usb_amradio_fops,4,2           ; @usb_amradio_fops
	.comm	_usb_amradio_ioctl_ops,4,2      ; @usb_amradio_ioctl_ops
	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.comm	_V4L2_CAP_RADIO,4,2             ; @V4L2_CAP_RADIO
	.comm	_V4L2_CAP_TUNER,4,2             ; @V4L2_CAP_TUNER
	.comm	_V4L2_CAP_HW_FREQ_SEEK,4,2      ; @V4L2_CAP_HW_FREQ_SEEK
	.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"

	.no_dead_strip	_usb_amradio_probe
.subsections_via_symbols
