	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtvfb_get_fix
_ivtvfb_get_fix:                        ## @ivtvfb_get_fix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_IVTVFB_DEBUG_INFO
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	40(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	12(%r14), %eax
	movl	%eax, 36(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	_FB_TYPE_PACKED_PIXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	cmpl	$8, (%r14)
	jne	LBB0_1
## %bb.2:
	movq	_FB_VISUAL_PSEUDOCOLOR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FB_VISUAL_TRUECOLOR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	$0, 16(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	_FB_ACCEL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ivtvfb_get_fix\n"

L_.str.1:                               ## @.str.1
	.asciz	"cx23415 TV out"

	.comm	_FB_TYPE_PACKED_PIXELS,4,2      ## @FB_TYPE_PACKED_PIXELS
	.comm	_FB_VISUAL_PSEUDOCOLOR,4,2      ## @FB_VISUAL_PSEUDOCOLOR
	.comm	_FB_VISUAL_TRUECOLOR,4,2        ## @FB_VISUAL_TRUECOLOR
	.comm	_FB_ACCEL_NONE,4,2              ## @FB_ACCEL_NONE
	.no_dead_strip	_ivtvfb_get_fix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtvfb_get_fix
_ivtvfb_get_fix:                        ; @ivtvfb_get_fix
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTVFB_DEBUG_INFO
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w0, [x19, #40]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	d0, [x20, #8]
	str	d0, [x19, #32]
Lloh4:
	adrp	x8, _FB_TYPE_PACKED_PIXELS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FB_TYPE_PACKED_PIXELS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _FB_VISUAL_PSEUDOCOLOR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FB_VISUAL_PSEUDOCOLOR@GOTPAGEOFF]
Lloh9:
	adrp	x10, _FB_VISUAL_TRUECOLOR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FB_VISUAL_TRUECOLOR@GOTPAGEOFF]
	cmp	w8, #8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
	movi.2s	v0, #1
	str	d0, [x19]
	str	xzr, [x19, #16]
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _FB_ACCEL_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FB_ACCEL_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ivtvfb_get_fix\n"

l_.str.1:                               ; @.str.1
	.asciz	"cx23415 TV out"

	.comm	_FB_TYPE_PACKED_PIXELS,4,2      ; @FB_TYPE_PACKED_PIXELS
	.comm	_FB_VISUAL_PSEUDOCOLOR,4,2      ; @FB_VISUAL_PSEUDOCOLOR
	.comm	_FB_VISUAL_TRUECOLOR,4,2        ; @FB_VISUAL_TRUECOLOR
	.comm	_FB_ACCEL_NONE,4,2              ; @FB_ACCEL_NONE
	.no_dead_strip	_ivtvfb_get_fix
.subsections_via_symbols
