	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3fb_init
_ps3fb_init:                            ## @ps3fb_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$0, -68(%rbp)
	movq	_ps3fb_softc@GOTPCREL(%rip), %rbx
	movq	%rbx, (%rdi)
	movabsq	$4638564679712, %rax            ## imm = 0x43800000020
	movq	%rax, 4(%rbx)
	movl	$1920, 12(%rbx)                 ## imm = 0x780
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_bzero
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_TUNABLE_STR_FETCH
	leaq	L_.str.1(%rip), %rsi
	leaq	-68(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sscanf
	movl	-68(%rbp), %eax
	decl	%eax
	cmpl	$12, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.ps3fb_init(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.ps3fb_init.4(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	movl	%ecx, 8(%rbx)
	movl	%eax, 12(%rbx)
LBB0_2:
	leaq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_TUNABLE_INT_FETCH
	leaq	12(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_TUNABLE_INT_FETCH
	movl	12(%rbx), %eax
	movl	36(%rbx), %edi
	shll	$2, %eax
	movl	%eax, 16(%rbx)
	imull	8(%rbx), %eax
	movl	%eax, 20(%rbx)
	movabsq	$1152921504606847008, %rax      ## imm = 0x1000000000000020
	movq	%rax, 24(%rbx)
	movq	_FB_FLAG_NOWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%rbx)
	movl	$16, 32(%rbx)
	movq	_COLOR_FORMAT_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edx
	movl	$16, %ecx
	movl	$255, %r8d
	movl	$8, %r9d
	pushq	$0
	pushq	$255
	callq	_vt_generate_cons_palette
	addq	$16, %rsp
	movl	(%rbx), %edi
	movq	_L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_lv1_gpu_context_attribute
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_lv1_gpu_context_attribute
	movq	%r14, %rdi
	callq	_vt_fb_init
	movq	_CN_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ps3fb_softc,44,2               ## @ps3fb_softc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video"

L_.str.1:                               ## @.str.1
	.asciz	"ps3fb:mode:%d"

L_.str.2:                               ## @.str.2
	.asciz	"hw.ps3fb.height"

L_.str.3:                               ## @.str.3
	.asciz	"hw.ps3fb.width"

	.comm	_FB_FLAG_NOWRITE,4,2            ## @FB_FLAG_NOWRITE
	.comm	_COLOR_FORMAT_RGB,4,2           ## @COLOR_FORMAT_RGB
	.comm	_L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,4,2 ## @L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP
	.comm	_CN_INTERNAL,4,2                ## @CN_INTERNAL
	.no_dead_strip	_ps3fb_init
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ps3fb_init
l_switch.table.ps3fb_init:
	.long	480                             ## 0x1e0
	.long	480                             ## 0x1e0
	.long	720                             ## 0x2d0
	.long	1080                            ## 0x438
	.long	1080                            ## 0x438
	.long	576                             ## 0x240
	.long	576                             ## 0x240
	.long	720                             ## 0x2d0
	.long	1080                            ## 0x438
	.long	1080                            ## 0x438
	.long	768                             ## 0x300
	.long	1024                            ## 0x400
	.long	1200                            ## 0x4b0

	.p2align	2                               ## @switch.table.ps3fb_init.4
l_switch.table.ps3fb_init.4:
	.long	720                             ## 0x2d0
	.long	720                             ## 0x2d0
	.long	1280                            ## 0x500
	.long	1920                            ## 0x780
	.long	1920                            ## 0x780
	.long	720                             ## 0x2d0
	.long	720                             ## 0x2d0
	.long	1280                            ## 0x500
	.long	1920                            ## 0x780
	.long	1920                            ## 0x780
	.long	1024                            ## 0x400
	.long	1280                            ## 0x500
	.long	1920                            ## 0x780

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ps3fb_init
lCPI0_0:
	.long	32                              ; 0x20
	.long	1080                            ; 0x438
lCPI0_1:
	.long	32                              ; 0x20
	.long	268435456                       ; 0x10000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ps3fb_init:                            ; @ps3fb_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	wzr, [sp, #12]
Lloh3:
	adrp	x20, _ps3fb_softc@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ps3fb_softc@GOTPAGEOFF]
	str	x20, [x0]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	mov	w8, #1920
	str	w8, [x20, #12]
	add	x0, sp, #16
	mov	w1, #24
	bl	_bzero
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #16
	mov	w2, #24
	bl	_TUNABLE_STR_FETCH
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	add	x2, sp, #12
	bl	_sscanf
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
	cmp	w8, #12
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh11:
	adrp	x9, l_switch.table.ps3fb_init@PAGE
Lloh12:
	add	x9, x9, l_switch.table.ps3fb_init@PAGEOFF
	ldr	w9, [x9, x8]
Lloh13:
	adrp	x10, l_switch.table.ps3fb_init.4@PAGE
Lloh14:
	add	x10, x10, l_switch.table.ps3fb_init.4@PAGEOFF
	ldr	w8, [x10, x8]
	stp	w9, w8, [x20, #8]
LBB0_2:
	add	x1, x20, #8
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TUNABLE_INT_FETCH
	add	x1, x20, #12
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TUNABLE_INT_FETCH
	ldp	w9, w8, [x20, #8]
	lsl	w8, w8, #2
	mul	w9, w9, w8
	stp	w8, w9, [x20, #16]
Lloh19:
	adrp	x8, _FB_FLAG_NOWRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FB_FLAG_NOWRITE@GOTPAGEOFF]
Lloh21:
	adrp	x9, lCPI0_1@PAGE
Lloh22:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldp	w0, w9, [x20, #36]
	orr	w8, w9, w8
	str	d0, [x20, #24]
	str	w8, [x20, #40]
	mov	w8, #16
	str	w8, [x20, #32]
Lloh24:
	adrp	x8, _COLOR_FORMAT_RGB@GOTPAGE
Lloh25:
	ldr	x8, [x8, _COLOR_FORMAT_RGB@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #255
	mov	w3, #16
	mov	w4, #255
	mov	w5, #8
	mov	w6, #255
	mov	w7, #0
	bl	_vt_generate_cons_palette
	ldr	w0, [x20]
Lloh27:
	adrp	x21, _L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP@GOTPAGE
Lloh28:
	ldr	x21, [x21, _L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_lv1_gpu_context_attribute
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_lv1_gpu_context_attribute
	mov	x0, x19
	bl	_vt_fb_init
Lloh29:
	adrp	x8, _CN_INTERNAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CN_INTERNAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ps3fb_softc,44,2               ; @ps3fb_softc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video"

l_.str.1:                               ; @.str.1
	.asciz	"ps3fb:mode:%d"

l_.str.2:                               ; @.str.2
	.asciz	"hw.ps3fb.height"

l_.str.3:                               ; @.str.3
	.asciz	"hw.ps3fb.width"

	.comm	_FB_FLAG_NOWRITE,4,2            ; @FB_FLAG_NOWRITE
	.comm	_COLOR_FORMAT_RGB,4,2           ; @COLOR_FORMAT_RGB
	.comm	_L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,4,2 ; @L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP
	.comm	_CN_INTERNAL,4,2                ; @CN_INTERNAL
	.no_dead_strip	_ps3fb_init
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ps3fb_init
l_switch.table.ps3fb_init:
	.long	480                             ; 0x1e0
	.long	480                             ; 0x1e0
	.long	720                             ; 0x2d0
	.long	1080                            ; 0x438
	.long	1080                            ; 0x438
	.long	576                             ; 0x240
	.long	576                             ; 0x240
	.long	720                             ; 0x2d0
	.long	1080                            ; 0x438
	.long	1080                            ; 0x438
	.long	768                             ; 0x300
	.long	1024                            ; 0x400
	.long	1200                            ; 0x4b0

	.p2align	2                               ; @switch.table.ps3fb_init.4
l_switch.table.ps3fb_init.4:
	.long	720                             ; 0x2d0
	.long	720                             ; 0x2d0
	.long	1280                            ; 0x500
	.long	1920                            ; 0x780
	.long	1920                            ; 0x780
	.long	720                             ; 0x2d0
	.long	720                             ; 0x2d0
	.long	1280                            ; 0x500
	.long	1920                            ; 0x780
	.long	1920                            ; 0x780
	.long	1024                            ; 0x400
	.long	1280                            ; 0x500
	.long	1920                            ; 0x780

.subsections_via_symbols
