	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_dmxdev_init                ## -- Begin function dvb_dmxdev_init
	.p2align	4, 0x90
_dvb_dmxdev_init:                       ## @dvb_dmxdev_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdi), %rdi
	callq	*(%rdi)
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	(%r15), %esi
	movl	$4, %edi
	callq	_array_size
	movl	%eax, %edi
	callq	_vmalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	28(%r15), %rdi
	callq	_mutex_init
	leaq	24(%r15), %rdi
	callq	_spin_lock_init
	movl	(%r15), %r9d
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_DMXDEV_STATE_FREE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	movq	%r15, 8(%rax,%rbx)
	movq	$0, (%rax,%rbx)
	movl	(%r12), %esi
	callq	_dvb_dmxdev_filter_state_set
	incq	%r13
	movslq	(%r15), %r9
	addq	$16, %rbx
	cmpq	%r9, %r13
	jl	LBB0_7
LBB0_8:
	leaq	12(%r15), %rsi
	movq	_DVB_DEVICE_DEMUX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_dvbdev_demux@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_dvb_register_device
	leaq	8(%r15), %rsi
	movq	_DVB_DEVICE_DVR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r15), %r9d
	movq	_dvbdev_dvr@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_dvb_register_device
	addq	$4, %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_dvb_ringbuffer_init
	jmp	LBB0_9
LBB0_1:
	movq	_EUSERS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EUSERS,4,2                     ## @EUSERS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMXDEV_STATE_FREE,4,2          ## @DMXDEV_STATE_FREE
	.comm	_dvbdev_demux,4,2               ## @dvbdev_demux
	.comm	_DVB_DEVICE_DEMUX,4,2           ## @DVB_DEVICE_DEMUX
	.comm	_dvbdev_dvr,4,2                 ## @dvbdev_dvr
	.comm	_DVB_DEVICE_DVR,4,2             ## @DVB_DEVICE_DVR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_dmxdev_init                ; -- Begin function dvb_dmxdev_init
	.p2align	2
_dvb_dmxdev_init:                       ; @dvb_dmxdev_init
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #32]
	ldr	x8, [x0]
	blr	x8
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldr	w1, [x19]
	mov	w0, #4
	bl	_array_size
	bl	_vmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
	add	x0, x19, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_spin_lock_init
	ldr	w5, [x19]
	cmp	w5, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _DMXDEV_STATE_FREE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMXDEV_STATE_FREE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	stp	xzr, x19, [x0]
	ldr	w1, [x23]
	bl	_dvb_dmxdev_filter_state_set
	add	x22, x22, #1
	ldrsw	x5, [x19]
	add	x21, x21, #16
	cmp	x22, x5
	b.lt	LBB0_4
LBB0_5:
	add	x1, x19, #12
Lloh2:
	adrp	x8, _DVB_DEVICE_DEMUX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DVB_DEVICE_DEMUX@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	adrp	x2, _dvbdev_demux@GOTPAGE
Lloh6:
	ldr	x2, [x2, _dvbdev_demux@GOTPAGEOFF]
	mov	x0, x20
	mov	x3, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_dvb_register_device
	add	x1, x19, #8
Lloh7:
	adrp	x8, _DVB_DEVICE_DVR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DVB_DEVICE_DVR@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x21, x19
	ldr	w5, [x21], #4
Lloh10:
	adrp	x2, _dvbdev_dvr@GOTPAGE
Lloh11:
	ldr	x2, [x2, _dvbdev_dvr@GOTPAGEOFF]
	mov	x0, x20
	mov	x3, x19
	bl	_dvb_register_device
	mov	x0, x21
	mov	x1, #0
	mov	w2, #8192
	bl	_dvb_ringbuffer_init
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _EUSERS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EUSERS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EUSERS,4,2                     ; @EUSERS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMXDEV_STATE_FREE,4,2          ; @DMXDEV_STATE_FREE
	.comm	_dvbdev_demux,4,2               ; @dvbdev_demux
	.comm	_DVB_DEVICE_DEMUX,4,2           ; @DVB_DEVICE_DEMUX
	.comm	_dvbdev_dvr,4,2                 ; @dvbdev_dvr
	.comm	_DVB_DEVICE_DVR,4,2             ; @DVB_DEVICE_DVR
.subsections_via_symbols
