	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c8sectpfe_tuner_register_frontend ## -- Begin function c8sectpfe_tuner_register_frontend
	.p2align	4, 0x90
_c8sectpfe_tuner_register_frontend:     ## @c8sectpfe_tuner_register_frontend
	.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, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_c8sectpfe_create
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	movq	8(%r15), %rcx
	movq	(%rcx), %r12
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_c8sectpfe_frontend_attach
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_c8sectpfe_tuner_unregister_frontend
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
LBB0_7:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi
	callq	_dvb_register_frontend
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rsi
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_c8sectpfe_frontend_attach
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	movl	%eax, %r13d
	jmp	LBB0_3
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %r13d
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb_register_frontend failed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c8sectpfe_tuner_register_frontend ; -- Begin function c8sectpfe_tuner_register_frontend
	.p2align	2
_c8sectpfe_tuner_register_frontend:     ; @c8sectpfe_tuner_register_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_c8sectpfe_create
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
	add	x0, sp, #8
	mov	x2, x21
	mov	w3, #0
	bl	_c8sectpfe_frontend_attach
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_c8sectpfe_tuner_unregister_frontend
	b	LBB0_11
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_5:
	mov	w23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x1, [sp, #8]
	bl	_dvb_register_frontend
	tbnz	w0, #31, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x21]
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x20]
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x23, lsl #3]
	add	x0, sp, #8
	mov	x2, x21
	mov	x3, x23
	bl	_c8sectpfe_frontend_attach
	add	x23, x23, #1
	cbz	w0, LBB0_6
; %bb.9:
	mov	x22, x0
	b	LBB0_3
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x22, x0
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb_register_frontend failed (%d)\n"

.subsections_via_symbols
