	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmfb_configure
_bcmfb_configure:                       ## @bcmfb_configure
	.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
	subq	$2088, %rsp                     ## imm = 0x828
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_bcmsc@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jne	LBB0_30
## %bb.1:
	movq	$0, 4(%r12)
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-2096(%rbp), %rbx
	movl	%eax, %edi
	movq	%rbx, %rdx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_OF_getprop
	testq	%rax, %rax
	jle	LBB0_17
## %bb.3:
	movq	%rbx, -2120(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-2120(%rbp), %rdi
	callq	_strsep
	movq	%rax, -2104(%rbp)
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	leaq	L_.str.2(%rip), %r14
	leaq	-2120(%rbp), %rbx
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, 4(%r12)
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strsep
	movq	%rax, -2104(%rbp)
	testq	%rax, %rax
	je	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rax)
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-2104(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strsep
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-2104(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-2104(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, 8(%r12)
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-2104(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$49, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, 12(%r12)
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.7(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_fdt_find_compatible
	testl	%eax, %eax
	je	LBB0_25
## %bb.19:
	movl	%eax, %ebx
	cmpl	$0, 4(%r12)
	jne	LBB0_22
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	leaq	-2112(%rbp), %rdx
	movl	%ebx, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_22
## %bb.21:
	movl	-2112(%rbp), %eax
	movl	%eax, 4(%r12)
LBB0_22:
	cmpl	$0, 8(%r12)
	jne	LBB0_25
## %bb.23:
	leaq	L_.str.10(%rip), %rsi
	leaq	-2112(%rbp), %rdx
	movl	%ebx, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_25
## %bb.24:
	movl	-2112(%rbp), %eax
	movl	%eax, 8(%r12)
LBB0_25:
	cmpl	$0, 4(%r12)
	je	LBB0_26
## %bb.27:
	cmpl	$0, 8(%r12)
	je	LBB0_28
LBB0_29:
	leaq	16(%r12), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_bcmfb_init
	movl	$1, (%r12)
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	xorl	%eax, %eax
	addq	$2088, %rsp                     ## imm = 0x828
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_FB_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	cmpl	$0, 8(%r12)
	jne	LBB0_29
LBB0_28:
	movq	_FB_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_29
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bcmsc,20,2                     ## @bcmsc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/chosen"

L_.str.1:                               ## @.str.1
	.asciz	"bootargs"

L_.str.2:                               ## @.str.2
	.asciz	" "

L_.str.3:                               ## @.str.3
	.asciz	"="

L_.str.4:                               ## @.str.4
	.asciz	"bcm2708_fb.fbwidth"

L_.str.5:                               ## @.str.5
	.asciz	"bcm2708_fb.fbheight"

L_.str.6:                               ## @.str.6
	.asciz	"bcm2708_fb.fbswap"

L_.str.7:                               ## @.str.7
	.asciz	"/"

L_.str.8:                               ## @.str.8
	.asciz	"broadcom,bcm2835-fb"

L_.str.9:                               ## @.str.9
	.asciz	"broadcom,width"

L_.str.10:                              ## @.str.10
	.asciz	"broadcom,height"

	.comm	_FB_WIDTH,4,2                   ## @FB_WIDTH
	.comm	_FB_HEIGHT,4,2                  ## @FB_HEIGHT
	.no_dead_strip	_bcmfb_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmfb_configure
_bcmfb_configure:                       ; @bcmfb_configure
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #2080
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _bcmsc@GOTPAGE
Lloh4:
	ldr	x25, [x25, _bcmsc@GOTPAGEOFF]
	ldr	w8, [x25]
	cbnz	w8, LBB0_27
; %bb.1:
	stp	wzr, wzr, [x25, #4]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x19, sp, #24
	add	x2, sp, #24
	mov	w3, #2048
	bl	_OF_getprop
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.3:
	str	x19, [sp, #16]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_strsep
	str	x0, [sp, #8]
	cbz	x0, LBB0_16
; %bb.4:
Lloh11:
	adrp	x19, l_.str.2@PAGE
Lloh12:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh13:
	adrp	x20, l_.str.3@PAGE
Lloh14:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh15:
	adrp	x21, l_.str.4@PAGE
Lloh16:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh17:
	adrp	x22, l_.str.5@PAGE
Lloh18:
	add	x22, x22, l_.str.5@PAGEOFF
	mov	w26, #1
Lloh19:
	adrp	x23, l_.str.6@PAGE
Lloh20:
	add	x23, x23, l_.str.6@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	str	w0, [x25, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	mov	x1, x19
	bl	_strsep
	str	x0, [sp, #8]
	cbz	x0, LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	mov	x24, x0
	mov	x1, x21
	bl	_strcmp
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	str	w0, [x25, #8]
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x8]
	cmp	w8, #49
	b.ne	LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	str	w26, [x25, #12]
	b	LBB0_6
LBB0_16:
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.17:
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #1
	bl	_fdt_find_compatible
	cbz	w0, LBB0_24
; %bb.18:
	mov	x19, x0
	ldr	w8, [x25, #4]
	cbnz	w8, LBB0_21
; %bb.19:
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, sp
	mov	x0, x19
	mov	w3, #8
	bl	_OF_getencprop
	cmp	x0, #1
	b.lt	LBB0_21
; %bb.20:
	ldr	x8, [sp]
	str	w8, [x25, #4]
LBB0_21:
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_24
; %bb.22:
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x2, sp
	mov	x0, x19
	mov	w3, #8
	bl	_OF_getencprop
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.23:
	ldr	x8, [sp]
	str	w8, [x25, #8]
LBB0_24:
	ldr	w8, [x25, #4]
	cbz	w8, LBB0_29
; %bb.25:
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_30
LBB0_26:
	add	x1, x25, #16
	mov	w0, #0
	mov	w2, #0
	bl	_bcmfb_init
	mov	w8, #1
	str	w8, [x25]
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.28:
	mov	w0, #0
	add	sp, sp, #2080
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
Lloh32:
	adrp	x8, _FB_WIDTH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FB_WIDTH@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x25, #4]
	ldr	w8, [x25, #8]
	cbnz	w8, LBB0_26
LBB0_30:
Lloh35:
	adrp	x8, _FB_HEIGHT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FB_HEIGHT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x25, #8]
	b	LBB0_26
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_bcmsc,20,2                     ; @bcmsc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/chosen"

l_.str.1:                               ; @.str.1
	.asciz	"bootargs"

l_.str.2:                               ; @.str.2
	.asciz	" "

l_.str.3:                               ; @.str.3
	.asciz	"="

l_.str.4:                               ; @.str.4
	.asciz	"bcm2708_fb.fbwidth"

l_.str.5:                               ; @.str.5
	.asciz	"bcm2708_fb.fbheight"

l_.str.6:                               ; @.str.6
	.asciz	"bcm2708_fb.fbswap"

l_.str.7:                               ; @.str.7
	.asciz	"/"

l_.str.8:                               ; @.str.8
	.asciz	"broadcom,bcm2835-fb"

l_.str.9:                               ; @.str.9
	.asciz	"broadcom,width"

l_.str.10:                              ; @.str.10
	.asciz	"broadcom,height"

	.comm	_FB_WIDTH,4,2                   ; @FB_WIDTH
	.comm	_FB_HEIGHT,4,2                  ; @FB_HEIGHT
	.no_dead_strip	_bcmfb_configure
.subsections_via_symbols
