	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_shark_probe
_usb_shark_probe:                       ## @usb_shark_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, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movq	_TB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_kmalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	leaq	8(%r14), %r15
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_shark_instance@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	callq	_v4l2_device_set_name
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_shark_register_leds
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_usb_shark_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 56(%r14)
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%r15, 48(%r14)
	movq	%r14, 40(%r14)
	movq	_shark_tea_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r14)
	movl	28(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	24(%r14), %esi
	movl	56(%r14), %edi
	movl	$4, %edx
	callq	_usb_make_path
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radio_tea5777_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_8:
	movq	%r14, %rdi
	callq	_shark_unregister_leds
LBB0_9:
	movq	(%r14), %rdi
	callq	_kfree
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_TB_LEN,4,2                     ## @TB_LEN
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_shark_instance,4,2             ## @shark_instance
	.comm	_usb_shark_release,4,2          ## @usb_shark_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't register v4l2_device\n"

	.comm	_shark_tea_ops,4,2              ## @shark_tea_ops
L_.str.1:                               ## @.str.1
	.asciz	"Griffin radioSHARK2"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.2:                               ## @.str.2
	.asciz	"couldn't init tea5777\n"

	.no_dead_strip	_usb_shark_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_shark_probe
_usb_shark_probe:                       ; @usb_shark_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	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _TB_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TB_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.2:
	add	x21, x19, #8
Lloh8:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, _shark_instance@GOTPAGE
Lloh12:
	ldr	x2, [x2, _shark_instance@GOTPAGEOFF]
	mov	x0, x21
	bl	_v4l2_device_set_name
	mov	x0, x19
	mov	x1, x22
	bl	_shark_register_leds
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.3:
Lloh13:
	adrp	x8, _usb_shark_release@GOTPAGE
Lloh14:
	ldr	x8, [x8, _usb_shark_release@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_device_register
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l2_err
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_interface_to_usbdev
	str	w0, [x19, #56]
	str	x21, [x19, #48]
Lloh18:
	adrp	x8, _shark_tea_ops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _shark_tea_ops@GOTPAGEOFF]
	stp	x8, x19, [x19, #32]
	movi.2s	v0, #1
	mov	x20, x19
	str	d0, [x20, #16]!
	ldr	w0, [x19, #28]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x19, #56]
	ldr	w1, [x19, #24]
	mov	w2, #4
	bl	_usb_make_path
Lloh22:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_radio_tea5777_init
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_v4l2_err
	mov	x0, x21
	bl	_v4l2_device_unregister
LBB0_7:
	mov	x0, x19
	bl	_shark_unregister_leds
LBB0_8:
	ldr	x0, [x19]
	bl	_kfree
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_TB_LEN,4,2                     ; @TB_LEN
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_shark_instance,4,2             ; @shark_instance
	.comm	_usb_shark_release,4,2          ; @usb_shark_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't register v4l2_device\n"

	.comm	_shark_tea_ops,4,2              ; @shark_tea_ops
l_.str.1:                               ; @.str.1
	.asciz	"Griffin radioSHARK2"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.2:                               ; @.str.2
	.asciz	"couldn't init tea5777\n"

	.no_dead_strip	_usb_shark_probe
.subsections_via_symbols
