	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm2835_mbox_fb_init           ## -- Begin function bcm2835_mbox_fb_init
	.p2align	4, 0x90
_bcm2835_mbox_fb_init:                  ## @bcm2835_mbox_fb_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	%r14
	pushq	%rbx
	subq	$416, %rsp                      ## imm = 0x1A0
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-424(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$408, %edx                      ## imm = 0x198
	callq	_memset
	movl	$408, -24(%rbp)                 ## imm = 0x198
	movq	_BCM2835_MBOX_CODE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	leaq	-200(%rbp), %rdi
	movq	_SET_PHYSICAL_W_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BCM2835_MBOX_INIT_TAG
	movl	32(%rbx), %eax
	movl	%eax, -148(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -152(%rbp)
	leaq	-256(%rbp), %rdi
	movq	_SET_VIRTUAL_W_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BCM2835_MBOX_INIT_TAG
	movl	24(%rbx), %eax
	movl	%eax, -204(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -208(%rbp)
	leaq	-312(%rbp), %rdi
	movq	_SET_VIRTUAL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BCM2835_MBOX_INIT_TAG
	movl	16(%rbx), %eax
	movl	%eax, -268(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -272(%rbp)
	leaq	-80(%rbp), %rdi
	movq	_SET_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BCM2835_MBOX_INIT_TAG
	movl	36(%rbx), %eax
	movl	%eax, -44(%rbp)
	leaq	-136(%rbp), %rdi
	movq	_SET_ALPHA_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BCM2835_MBOX_INIT_TAG
	movq	_BCM2835_MBOX_ALPHA_MODE_IGNORED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BCM2835_MBOX_INIT_TAG
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -396(%rbp)
	leaq	-368(%rbp), %rdi
	movq	_GET_PITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BCM2835_MBOX_INIT_TAG
	movq	$0, -144(%rbp)
	movq	%r14, %rdi
	movl	$408, %esi                      ## imm = 0x198
	callq	_bcm2835_mbox_property
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-176(%rbp), %eax
	movl	%eax, 32(%rbx)
	movl	-180(%rbp), %eax
	movl	%eax, 28(%rbx)
	movsd	-236(%rbp), %xmm0               ## xmm0 = mem[0],zero
	movsd	-300(%rbp), %xmm1               ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 12(%rbx)
	movl	-360(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-420(%rbp), %edi
	callq	_VCBUS_TO_PHYS
	movl	%eax, 4(%rbx)
	movl	-424(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movl	%r14d, %eax
	addq	$416, %rsp                      ## imm = 0x1A0
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ## @BCM2835_MBOX_CODE_REQ
	.comm	_SET_PHYSICAL_W_H,4,2           ## @SET_PHYSICAL_W_H
	.comm	_SET_VIRTUAL_W_H,4,2            ## @SET_VIRTUAL_W_H
	.comm	_SET_VIRTUAL_OFFSET,4,2         ## @SET_VIRTUAL_OFFSET
	.comm	_SET_DEPTH,4,2                  ## @SET_DEPTH
	.comm	_SET_ALPHA_MODE,4,2             ## @SET_ALPHA_MODE
	.comm	_BCM2835_MBOX_ALPHA_MODE_IGNORED,4,2 ## @BCM2835_MBOX_ALPHA_MODE_IGNORED
	.comm	_ALLOCATE_BUFFER,4,2            ## @ALLOCATE_BUFFER
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GET_PITCH,4,2                  ## @GET_PITCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm2835_mbox_fb_init           ; -- Begin function bcm2835_mbox_fb_init
	.p2align	2
_bcm2835_mbox_fb_init:                  ; @bcm2835_mbox_fb_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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
	add	x21, sp, #8
	mov	w20, #408
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #408
	bl	_memset
	str	w20, [sp, #408]
Lloh0:
	adrp	x8, _BCM2835_MBOX_CODE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM2835_MBOX_CODE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #412]
	add	x0, x21, #224
Lloh3:
	adrp	x8, _SET_PHYSICAL_W_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_PHYSICAL_W_H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_BCM2835_MBOX_INIT_TAG
	ldur	d0, [x19, #28]
	str	d0, [sp, #280]
	add	x0, x21, #168
Lloh6:
	adrp	x8, _SET_VIRTUAL_W_H@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SET_VIRTUAL_W_H@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_BCM2835_MBOX_INIT_TAG
	ldur	d0, [x19, #20]
	str	d0, [sp, #224]
	add	x0, x21, #112
Lloh9:
	adrp	x8, _SET_VIRTUAL_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SET_VIRTUAL_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_BCM2835_MBOX_INIT_TAG
	ldur	d0, [x19, #12]
	str	d0, [sp, #160]
	add	x0, x21, #344
Lloh12:
	adrp	x8, _SET_DEPTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SET_DEPTH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_BCM2835_MBOX_INIT_TAG
	ldr	w8, [x19, #36]
	str	w8, [sp, #388]
	add	x0, x21, #288
Lloh15:
	adrp	x8, _SET_ALPHA_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SET_ALPHA_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_BCM2835_MBOX_INIT_TAG
Lloh18:
	adrp	x8, _BCM2835_MBOX_ALPHA_MODE_IGNORED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BCM2835_MBOX_ALPHA_MODE_IGNORED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #328]
Lloh21:
	adrp	x8, _ALLOCATE_BUFFER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_BCM2835_MBOX_INIT_TAG
Lloh24:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	add	x0, x21, #56
Lloh27:
	adrp	x8, _GET_PITCH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GET_PITCH@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_BCM2835_MBOX_INIT_TAG
	str	xzr, [sp, #288]
	add	x0, sp, #8
	mov	w1, #408
	bl	_bcm2835_mbox_property
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldur	d0, [x21, #244]
	stur	d0, [x19, #28]
	ldur	d0, [x21, #188]
	ldur	d1, [sp, #132]
	mov.d	v1[1], v0[0]
	stur	q1, [x19, #12]
	ldr	w8, [sp, #72]
	ldr	w0, [sp, #12]
	str	w8, [x19, #8]
	bl	_VCBUS_TO_PHYS
	ldr	w8, [sp, #8]
	stp	w8, w0, [x19]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_MBOX_CODE_REQ,4,2      ; @BCM2835_MBOX_CODE_REQ
	.comm	_SET_PHYSICAL_W_H,4,2           ; @SET_PHYSICAL_W_H
	.comm	_SET_VIRTUAL_W_H,4,2            ; @SET_VIRTUAL_W_H
	.comm	_SET_VIRTUAL_OFFSET,4,2         ; @SET_VIRTUAL_OFFSET
	.comm	_SET_DEPTH,4,2                  ; @SET_DEPTH
	.comm	_SET_ALPHA_MODE,4,2             ; @SET_ALPHA_MODE
	.comm	_BCM2835_MBOX_ALPHA_MODE_IGNORED,4,2 ; @BCM2835_MBOX_ALPHA_MODE_IGNORED
	.comm	_ALLOCATE_BUFFER,4,2            ; @ALLOCATE_BUFFER
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GET_PITCH,4,2                  ; @GET_PITCH
.subsections_via_symbols
