	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtv_alloc                     ## -- Begin function fdtv_alloc
	.p2align	4, 0x90
_fdtv_alloc:                            ## @fdtv_alloc
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	%r13, 40(%r14)
	movabsq	$1099511627775, %rax            ## imm = 0xFFFFFFFFFF
	movq	%rax, (%r14)
	movl	$255, 8(%r14)
	movq	%r12, 32(%r14)
	leaq	28(%r14), %rdi
	callq	_mutex_init
	leaq	24(%r14), %rdi
	callq	_init_waitqueue_head
	leaq	20(%r14), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	_avc_remote_ctrl_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_fdtv_model_names@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%ecx, %ecx
	decl	%eax
	je	LBB0_8
## %bb.2:
	movslq	%eax, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%r12
	testl	%r12d, %r12d
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r12,4), %edi
	callq	_strlen
	cmpq	%rbx, %rax
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	%r12d, %ecx
	jmp	LBB0_8
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movl	%ecx, 12(%r14)
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_avc_remote_ctrl_work,4,2       ## @avc_remote_ctrl_work
	.comm	_fdtv_model_names,8,3           ## @fdtv_model_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtv_alloc                     ; -- Begin function fdtv_alloc
	.p2align	2
_fdtv_alloc:                            ; @fdtv_alloc
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x23
	mov	x1, x19
	bl	_dev_set_drvdata
	movi	d0, #0x0000ffffffffff
	str	d0, [x19]
	mov	w8, #255
	str	w8, [x19, #8]
	stp	x22, x23, [x19, #32]
	add	x0, x19, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_init_waitqueue_head
	add	x0, x19, #20
	bl	_mutex_init
	add	x0, x19, #16
Lloh3:
	adrp	x8, _avc_remote_ctrl_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _avc_remote_ctrl_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh6:
	adrp	x23, _fdtv_model_names@GOTPAGE
Lloh7:
	ldr	x23, [x23, _fdtv_model_names@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	subs	w22, w0, #1
	b.eq	LBB0_6
; %bb.2:
	sbfiz	x24, x22, #2, #32
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x24, x24, #4
	sub	w22, w22, #1
	cbz	w22, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x24]
	bl	_strlen
	cmp	x0, x20
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	mov	x0, x21
	mov	x2, x20
	bl	_strncmp
	cbnz	x0, LBB0_3
LBB0_6:
	str	w22, [x19, #12]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_avc_remote_ctrl_work,4,2       ; @avc_remote_ctrl_work
	.comm	_fdtv_model_names,8,3           ; @fdtv_model_names
.subsections_via_symbols
