	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt1_alloc_adapter
_pt1_alloc_adapter:                     ## @pt1_alloc_adapter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$120, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, 112(%rax)
	movq	_SEC_VOLTAGE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movl	$1, (%rbx)
	movl	(%r14), %edi
	callq	___get_free_page
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, 96(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movl	$-1, 4(%rbx)
	leaq	72(%rbx), %r15
	movq	%rbx, 72(%rbx)
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rcx
	movq	_adapter_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	callq	_dvb_register_adapter
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_DMX_TS_FILTERING@GOTPCREL(%rip), %rax
	movq	_DMX_SECTION_FILTERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	32(%rbx), %r13
	movl	%ecx, 40(%rbx)
	movq	%rbx, 64(%rbx)
	movabsq	$1099511628032, %rax            ## imm = 0x10000000100
	movq	%rax, 32(%rbx)
	movq	_pt1_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_pt1_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	%r13, %rdi
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	leaq	40(%rbx), %rax
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	$256, 8(%rbx)                   ## imm = 0x100
	movq	%rax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	%r15, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_dvb_dmx_release
LBB0_10:
	movq	%r15, %rdi
	callq	_dvb_unregister_adapter
LBB0_11:
	movq	%r14, %rdi
	callq	_free_page
LBB0_12:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_13:
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SEC_VOLTAGE_OFF,4,2            ## @SEC_VOLTAGE_OFF
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_adapter_nr,4,2                 ## @adapter_nr
	.comm	_DMX_TS_FILTERING,4,2           ## @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ## @DMX_SECTION_FILTERING
	.comm	_pt1_start_feed,4,2             ## @pt1_start_feed
	.comm	_pt1_stop_feed,4,2              ## @pt1_stop_feed
	.no_dead_strip	_pt1_alloc_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt1_alloc_adapter
_pt1_alloc_adapter:                     ; @pt1_alloc_adapter
	.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	x22, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #120
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _SEC_VOLTAGE_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEC_VOLTAGE_OFF@GOTPAGEOFF]
	str	x22, [x0, #112]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #104]
	mov	w8, #1
	str	w8, [x0]
	ldr	w0, [x20]
	bl	___get_free_page
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	stp	xzr, x0, [x19, #88]
	mov	w8, #-1
	str	w8, [x19, #4]
	add	x21, x19, #72
	stp	x19, xzr, [x19, #72]
Lloh5:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh7:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w2, [x9]
	ldr	x3, [x22]
Lloh11:
	adrp	x8, _adapter_nr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _adapter_nr@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x21
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_8
; %bb.3:
	movi.2s	v0, #1, lsl #8
	mov	x23, x19
	str	d0, [x23, #32]!
Lloh14:
	adrp	x8, _DMX_TS_FILTERING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMX_TS_FILTERING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _DMX_SECTION_FILTERING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DMX_SECTION_FILTERING@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x24, x19
	str	w8, [x24, #40]!
	str	x19, [x19, #64]
Lloh20:
	adrp	x8, _pt1_start_feed@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pt1_start_feed@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _pt1_stop_feed@GOTPAGE
Lloh24:
	ldr	x9, [x9, _pt1_stop_feed@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	str	xzr, [x19, #48]
	mov	x0, x23
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	w8, #256
	mov	x0, x19
	str	w8, [x0, #8]!
	stp	xzr, x24, [x0, #8]
	mov	x1, x21
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x0, x19
	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_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_7:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_8:
	mov	x22, x0
	b	LBB0_12
LBB0_9:
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	mov	x0, x23
	bl	_dvb_dmx_release
LBB0_11:
	mov	x0, x21
	bl	_dvb_unregister_adapter
LBB0_12:
	mov	x0, x20
	bl	_free_page
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x22
	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
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SEC_VOLTAGE_OFF,4,2            ; @SEC_VOLTAGE_OFF
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_adapter_nr,4,2                 ; @adapter_nr
	.comm	_DMX_TS_FILTERING,4,2           ; @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ; @DMX_SECTION_FILTERING
	.comm	_pt1_start_feed,4,2             ; @pt1_start_feed
	.comm	_pt1_stop_feed,4,2              ; @pt1_stop_feed
	.no_dead_strip	_pt1_alloc_adapter
.subsections_via_symbols
