	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function framebuffer_probe
_framebuffer_probe:                     ## @framebuffer_probe
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %eax
	movl	%eax, -96(%rbp)
	movl	12(%rdi), %eax
	movl	%eax, -92(%rbp)
	movl	96(%rdi), %eax
	movl	%eax, -80(%rbp)
	movq	_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movl	$72, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$80, %rbx
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%r14), %rdi
	cmpq	-72(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rax
	cmpq	-8(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rax
	cmpq	(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r15), %rax
	cmpq	-24(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r15), %rax
	cmpq	-16(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r15), %rax
	cmpq	-40(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	64(%r15), %rax
	cmpq	-32(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%r15), %rax
	cmpq	-56(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r15), %rax
	cmpq	-48(%rdi,%rbx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rdi,%rbx), %r13
	jmp	LBB0_12
LBB0_13:
	movq	%r13, -88(%rbp)
	testq	%r13, %r13
	je	LBB0_14
## %bb.15:
	leaq	-72(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movq	_IORESOURCE_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	88(%r15), %rax
	movq	%rax, -56(%rbp)
	movl	12(%r15), %edi
	imull	8(%r15), %edi
	callq	_PAGE_ALIGN
	movq	-56(%rbp), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, -48(%rbp)
	cmpq	%rcx, %rax
	jle	LBB0_16
## %bb.17:
	movl	$24, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-72(%rbp), %rcx
	leaq	-96(%rbp), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_platform_device_register_resndata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_20
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
LBB0_20:
	movq	%r14, %rdi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_formats,8,3                    ## @formats
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_BUSY,4,2            ## @IORESOURCE_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Coreboot Framebuffer"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"simple-framebuffer"

L_.str.2:                               ## @.str.2
	.asciz	"coreboot: could not register framebuffer\n"

	.no_dead_strip	_framebuffer_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function framebuffer_probe
_framebuffer_probe:                     ; @framebuffer_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	ldr	d0, [x0, #8]
	str	d0, [sp, #8]
	ldr	w8, [x0, #96]
	str	w8, [sp, #24]
Lloh0:
	adrp	x20, _formats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _formats@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	w23, #72
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #80
	cmp	x21, w0, sxtw
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x20]
	add	x8, x0, x23
	ldur	x10, [x8, #-72]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #24]
	ldur	x8, [x8, #-8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x0, x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #40]
	add	x8, x0, x23
	ldur	x10, [x8, #-24]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #48]
	ldur	x8, [x8, #-16]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #56]
	add	x8, x0, x23
	ldur	x10, [x8, #-40]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #64]
	ldur	x8, [x8, #-32]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #72]
	add	x8, x0, x23
	ldur	x10, [x8, #-56]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #80]
	ldur	x8, [x8, #-48]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x23
	ldur	x22, [x8, #-64]
	b	LBB0_2
LBB0_13:
	str	x22, [sp, #16]
	cbz	x22, LBB0_17
; %bb.14:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IORESOURCE_BUSY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IORESOURCE_BUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #32]
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x9, [x19, #88]
	stp	x8, x9, [sp, #40]
	ldp	w8, w9, [x19, #8]
	mul	w0, w9, w8
	bl	_PAGE_ALIGN
	ldr	x8, [sp, #48]
	add	x9, x0, x8
	sub	x9, x9, #1
	str	x9, [sp, #56]
	cmp	x9, x8
	b.le	LBB0_18
; %bb.15:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #32
	add	x5, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w4, #1
	mov	w6, #24
	bl	_platform_device_register_resndata
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.16:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
	b	LBB0_22
LBB0_17:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
LBB0_22:
	mov	x0, x20
	bl	_PTR_ERR_OR_ZERO
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_formats,8,3                    ; @formats
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_BUSY,4,2            ; @IORESOURCE_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Coreboot Framebuffer"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"simple-framebuffer"

l_.str.2:                               ; @.str.2
	.asciz	"coreboot: could not register framebuffer\n"

	.no_dead_strip	_framebuffer_probe
.subsections_via_symbols
