	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_device_init            ## -- Begin function dvb_usb_device_init
	.p2align	4, 0x90
_dvb_usb_device_init:                   ## @dvb_usb_device_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_interface_to_usbdev
	movl	$0, -44(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	leaq	-44(%rbp), %rdx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_dvb_usb_find_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)
	je	LBB0_7
## %bb.5:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_info
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_dvb_usb_download_firmware
	movl	%eax, %r12d
	cmpl	$0, (%r14)
	je	LBB0_14
## %bb.6:
	testl	%r12d, %r12d
	jne	LBB0_14
LBB0_7:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r13)
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, 8(%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_usb_set_intfdata
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	%r13, (%rbx)
LBB0_11:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_dvb_usb_init
	movl	(%r15), %esi
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_info
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_deb_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_info
LBB0_14:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"something went very wrong, device was not found in current device list - let's see what comes next.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"found a '%s' in cold state, will try to load a firmware"

L_.str.2:                               ## @.str.2
	.asciz	"found a '%s' in warm state."

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"no memory for 'struct dvb_usb_device'"

L_.str.4:                               ## @.str.4
	.asciz	"%s successfully initialized and connected."

L_.str.5:                               ## @.str.5
	.asciz	"%s error while loading driver (%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_device_init            ; -- Begin function dvb_usb_device_init
	.p2align	2
_dvb_usb_device_init:                   ; @dvb_usb_device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_interface_to_usbdev
	mov	x25, x0
	str	wzr, [sp, #12]
	cbz	x20, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	add	x2, sp, #12
	mov	x0, x25
	mov	x1, x23
	bl	_dvb_usb_find_device
	cbz	x0, LBB0_11
; %bb.3:
	mov	x24, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w1, [x24]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	mov	x0, x25
	mov	x1, x23
	bl	_dvb_usb_download_firmware
	mov	x26, x0
	ldr	w8, [x23]
	cbz	w8, LBB0_16
; %bb.5:
	cbnz	w26, LBB0_16
LBB0_6:
	ldr	w1, [x24]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x26, x0
	str	x25, [x0, #24]
	add	x0, x0, #16
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	stp	x22, x24, [x26]
	mov	x0, x21
	mov	x1, x26
	bl	_usb_set_intfdata
	cbz	x20, LBB0_9
; %bb.8:
	str	x26, [x20]
LBB0_9:
	mov	x0, x26
	mov	x1, x19
	bl	_dvb_usb_init
	mov	x26, x0
	ldr	w1, [x24]
	cbz	w0, LBB0_14
; %bb.10:
	str	x26, [sp]
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_16
LBB0_14:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_15:
	bl	_info
LBB0_16:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"something went very wrong, device was not found in current device list - let's see what comes next.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"found a '%s' in cold state, will try to load a firmware"

l_.str.2:                               ; @.str.2
	.asciz	"found a '%s' in warm state."

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"no memory for 'struct dvb_usb_device'"

l_.str.4:                               ; @.str.4
	.asciz	"%s successfully initialized and connected."

l_.str.5:                               ; @.str.5
	.asciz	"%s error while loading driver (%d)"

.subsections_via_symbols
