	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_usb_init
_dvb_usb_init:                          ## @dvb_usb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$36, %rdi
	callq	_mutex_init
	leaq	32(%rbx), %rdi
	callq	_mutex_init
	leaq	28(%rbx), %rdi
	callq	_mutex_init
	movq	_DVB_USB_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dvb_usb_device_power_ctrl
	movq	%rbx, %rdi
	callq	_dvb_usb_i2c_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dvb_usb_adapter_init
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_dvb_usb_exit
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	callq	_dvb_usb_remote_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
LBB0_11:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dvb_usb_device_power_ctrl
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVB_USB_STATE_INIT,4,2         ## @DVB_USB_STATE_INIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory for priv in 'struct dvb_usb_device'"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"could not initialize remote control."

	.no_dead_strip	_dvb_usb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_usb_init
_dvb_usb_init:                          ; @dvb_usb_init
	.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, x1
	mov	x19, x0
	add	x0, x0, #36
	bl	_mutex_init
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #28
	bl	_mutex_init
Lloh0:
	adrp	x8, _DVB_USB_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVB_USB_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x0, [x19, #8]
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_dvb_usb_device_power_ctrl
	mov	x0, x19
	bl	_dvb_usb_i2c_init
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_usb_adapter_init
	mov	x21, x0
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_dvb_usb_exit
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_dvb_usb_remote_init
	cbz	w0, LBB0_11
; %bb.10:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_dvb_usb_device_power_ctrl
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DVB_USB_STATE_INIT,4,2         ; @DVB_USB_STATE_INIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory for priv in 'struct dvb_usb_device'"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"could not initialize remote control."

	.no_dead_strip	_dvb_usb_init
.subsections_via_symbols
