	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_dvb_create                ## -- Begin function pvr2_dvb_create
	.p2align	4, 0x90
_pvr2_dvb_create:                       ## @pvr2_dvb_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_pvr2_channel_init
	movq	_pvr2_dvb_internal_check@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_pvr2_dvb_adapter_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_pvr2_dvb_frontend_init
	testl	%eax, %eax
	jns	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_pvr2_dvb_adapter_exit
LBB0_5:
	movq	%rbx, %rdi
	callq	_pvr2_channel_done
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_pvr2_dvb_internal_check,4,2    ## @pvr2_dvb_internal_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_dvb_create                ; -- Begin function pvr2_dvb_create
	.p2align	2
_pvr2_dvb_create:                       ; @pvr2_dvb_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_pvr2_channel_init
Lloh3:
	adrp	x8, _pvr2_dvb_internal_check@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pvr2_dvb_internal_check@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x20, x19
	str	w8, [x20], #4
	add	x0, x19, #8
	bl	_init_waitqueue_head
	mov	x0, x20
	bl	_mutex_init
	mov	x0, x19
	bl	_pvr2_dvb_adapter_init
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_pvr2_dvb_frontend_init
	tbz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_pvr2_dvb_adapter_exit
LBB0_5:
	mov	x0, x19
	bl	_pvr2_channel_done
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_pvr2_dvb_internal_check,4,2    ; @pvr2_dvb_internal_check
.subsections_via_symbols
