	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_init
_tfp410_init:                           ## @tfp410_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	%r12, 16(%rbx)
	movq	%rax, 8(%rbx)
	movl	$1, (%rax)
	movq	_TFP410_VID_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tfp410_getid
	movq	_TFP410_VID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.4:
	movq	_TFP410_DID_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tfp410_getid
	movq	_TFP410_DID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movl	$0, (%r15)
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_2:
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_TFP410_VID_LO,4,2              ## @TFP410_VID_LO
	.comm	_TFP410_VID,4,2                 ## @TFP410_VID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tfp410 not detected got VID %X: from %s Slave %d.\n"

	.comm	_TFP410_DID_LO,4,2              ## @TFP410_DID_LO
	.comm	_TFP410_DID,4,2                 ## @TFP410_DID
L_.str.1:                               ## @.str.1
	.asciz	"tfp410 not detected got DID %X: from %s Slave %d.\n"

	.no_dead_strip	_tfp410_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_init
_tfp410_init:                           ; @tfp410_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	stp	x0, x21, [x20, #8]
	mov	w8, #1
	str	w8, [x0]
Lloh3:
	adrp	x8, _TFP410_VID_LO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TFP410_VID_LO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tfp410_getid
Lloh6:
	adrp	x8, _TFP410_VID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TFP410_VID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _TFP410_DID_LO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TFP410_DID_LO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tfp410_getid
Lloh12:
	adrp	x8, _TFP410_DID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TFP410_DID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	str	wzr, [x19]
	mov	w0, #1
	b	LBB0_7
LBB0_4:
	mov	x1, x0
	ldr	w2, [x21]
	ldr	w3, [x20]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x1, x0
	ldr	w2, [x21]
	ldr	w3, [x20]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_TFP410_VID_LO,4,2              ; @TFP410_VID_LO
	.comm	_TFP410_VID,4,2                 ; @TFP410_VID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tfp410 not detected got VID %X: from %s Slave %d.\n"

	.comm	_TFP410_DID_LO,4,2              ; @TFP410_DID_LO
	.comm	_TFP410_DID,4,2                 ; @TFP410_DID
l_.str.1:                               ; @.str.1
	.asciz	"tfp410 not detected got DID %X: from %s Slave %d.\n"

	.no_dead_strip	_tfp410_init
.subsections_via_symbols
