	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_usb_adapter_init
_dvb_usb_adapter_init:                  ## @dvb_usb_adapter_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	jle	LBB0_16
## %bb.1:
	movl	$24, %r14d
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rbx
	leaq	(%rbx,%r14), %rdi
	movq	%r13, 16(%rbx,%r14)
	movl	%r12d, -24(%rbx,%r14)
	movq	16(%r13), %rsi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%r13), %rax
	movq	(%rax), %rcx
	movl	(%rbx,%r14), %eax
	movq	_USB_SPEED_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVB_USB_ADAP_HAS_PID_FILTER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVB_USB_ADAP_NEED_PID_FILTERING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r12,2), %rax
	shlq	$4, %rax
	leaq	(%rbx,%rax), %r15
	addq	$28, %r15
	movl	4(%rbx,%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_info
	movl	$1, -20(%rbx,%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movl	%eax, -16(%rbx,%r14)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx,%r14), %rdi
	testq	%rdi, %rdi
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, -8(%rbx,%r14)
	testq	%rax, %rax
	je	LBB0_21
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	leaq	(%rbx,%r14), %r15
	addq	$-24, %r15
	movq	%r15, %rdi
	callq	_dvb_usb_adapter_stream_init
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_dvb_usb_adapter_dvb_init
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_dvb_usb_adapter_frontend_init
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r13
	incl	36(%r12)
	movq	_DVB_USB_STATE_DVB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r12)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	movslq	(%r13), %rax
	addq	$48, %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$4, %rcx
	cmpq	%rax, %r12
	jl	LBB0_2
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_info
	movabsq	$1095216660480, %rax            ## imm = 0xFF00000000
	movq	%rax, -20(%rbx,%r14)
	movq	_dvb_usb_force_pid_filter_usage@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_DVB_USB_ADAP_HAS_PID_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx,%r14)
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_info
	movl	$1, -20(%rbx,%r14)
	leaq	(%rbx,%r14), %r15
	addq	$4, %r15
	jmp	LBB0_6
LBB0_16:
	movq	8(%r13), %rsi
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.17:
	movq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_usb_sndbulkpipe
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_usb_clear_halt
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_usb_rcvbulkpipe
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_usb_clear_halt
	jmp	LBB0_24
LBB0_18:
	movl	%eax, %r13d
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %r13d
LBB0_24:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_SPEED_FULL,8,3             ## @USB_SPEED_FULL
	.comm	_DVB_USB_ADAP_HAS_PID_FILTER,4,2 ## @DVB_USB_ADAP_HAS_PID_FILTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This USB2.0 device cannot be run on a USB1.1 port. (it lacks a hardware PID filter)"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DVB_USB_ADAP_NEED_PID_FILTERING,4,2 ## @DVB_USB_ADAP_NEED_PID_FILTERING
L_.str.1:                               ## @.str.1
	.asciz	"will use the device's hardware PID filter (table count: %d)."

L_.str.2:                               ## @.str.2
	.asciz	"will pass the complete MPEG2 transport stream to the software demuxer."

	.comm	_dvb_usb_force_pid_filter_usage,8,3 ## @dvb_usb_force_pid_filter_usage
L_.str.3:                               ## @.str.3
	.asciz	"pid filter enabled by module option."

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"no memory for priv for adapter %d."

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DVB_USB_STATE_DVB,4,2          ## @DVB_USB_STATE_DVB
	.no_dead_strip	_dvb_usb_adapter_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_adapter_init
_dvb_usb_adapter_init:                  ; @dvb_usb_adapter_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x20, x1
	mov	x26, #0
	mov	x27, #0
	mov	x25, #0
Lloh0:
	adrp	x28, _USB_SPEED_FULL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _USB_SPEED_FULL@GOTPAGEOFF]
	movi	d8, #0x0000ff00000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #40]
	add	x24, x21, x27
	str	x19, [x24, #40]
	str	w25, [x24]
	ldr	x8, [x19, #16]
	add	x1, x8, x26
	add	x0, x24, #24
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	ldr	x10, [x28]
	ldr	w8, [x24, #24]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x9, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
	b	LBB0_20
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x9, _DVB_USB_ADAP_NEED_PID_FILTERING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DVB_USB_ADAP_NEED_PID_FILTERING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #48
	madd	x8, x25, x8, x21
	add	x23, x8, #28
	add	x22, x21, x27
	ldr	w8, [x22, #28]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	mov	w8, #1
	str	w8, [x22, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	add	x9, x21, x27
	str	w8, [x9, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, x27
	ldr	x0, [x21, #32]
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_dvb_usb_adapter_stream_init
	cbnz	w0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x20
	bl	_dvb_usb_adapter_dvb_init
	cbnz	w0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_dvb_usb_adapter_frontend_init
	cbnz	w0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	d0, [x19, #32]
	movi.2s	v1, #1
Lloh13:
	adrp	x8, _DVB_USB_STATE_DVB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DVB_USB_STATE_DVB@GOTPAGEOFF]
	ld1.s	{ v1 }[0], [x8]
	orr.8b	v1, v0, v1
	movi.2s	v2, #1
	add.2s	v0, v0, v2
	mov.s	v1[1], v0[1]
	str	d1, [x19, #32]
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x27, x27, #48
	add	x26, x26, #4
	cmp	x25, x8
	b.lt	LBB0_2
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
	add	x23, x21, x27
	stur	d8, [x23, #4]
Lloh17:
	adrp	x8, _dvb_usb_force_pid_filter_usage@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dvb_usb_force_pid_filter_usage@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24, #24]
Lloh20:
	adrp	x9, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DVB_USB_ADAP_HAS_PID_FILTER@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_info
	mov	w8, #1
	str	w8, [x23, #4]
	add	x8, x21, x27
	add	x23, x8, #28
	b	LBB0_6
LBB0_16:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_18
; %bb.17:
	ldr	x20, [x19, #24]
	mov	x0, x20
	bl	_usb_sndbulkpipe
	mov	x1, x0
	mov	x0, x20
	bl	_usb_clear_halt
	ldr	x20, [x19, #24]
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	mov	x0, x20
	bl	_usb_clear_halt
LBB0_18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
	str	x25, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_SPEED_FULL,8,3             ; @USB_SPEED_FULL
	.comm	_DVB_USB_ADAP_HAS_PID_FILTER,4,2 ; @DVB_USB_ADAP_HAS_PID_FILTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This USB2.0 device cannot be run on a USB1.1 port. (it lacks a hardware PID filter)"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DVB_USB_ADAP_NEED_PID_FILTERING,4,2 ; @DVB_USB_ADAP_NEED_PID_FILTERING
l_.str.1:                               ; @.str.1
	.asciz	"will use the device's hardware PID filter (table count: %d)."

l_.str.2:                               ; @.str.2
	.asciz	"will pass the complete MPEG2 transport stream to the software demuxer."

	.comm	_dvb_usb_force_pid_filter_usage,8,3 ; @dvb_usb_force_pid_filter_usage
l_.str.3:                               ; @.str.3
	.asciz	"pid filter enabled by module option."

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"no memory for priv for adapter %d."

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DVB_USB_STATE_DVB,4,2          ; @DVB_USB_STATE_DVB
	.no_dead_strip	_dvb_usb_adapter_init
.subsections_via_symbols
