	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function diu_attach
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_6:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
LCPI0_7:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_diu_attach:                            ## @diu_attach
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%r15d, 128(%rax)
	movq	_diu_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	120(%r14), %rdx
	movl	%r15d, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%r15d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %ebx
	movq	120(%r14), %rax
	movq	_INTR_TYPE_BIO@GOTPCREL(%rip), %rcx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	4(%rax), %esi
	movq	_diu_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rax
	addq	$116, %rax
	movq	%rax, (%rsp)
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %rdx
	movl	%ebx, %edi
	callq	_OF_getprop_alloc
	testq	%rax, %rax
	jle	LBB0_7
LBB0_9:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	leaq	-56(%rbp), %rsi
	callq	_edid_parse
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	-72(%rbp), %rdi
	callq	_OF_prop_free
	jmp	LBB0_3
LBB0_7:
	movl	%r15d, %edi
	callq	_device_get_name
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_device_get_unit
	leaq	L_.str.3(%rip), %rdx
	leaq	-64(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_resource_string_value
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	movq	-64(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_13
## %bb.14:
	movl	-44(%rbp), %edi
	movl	-56(%rbp), %esi
	movl	-48(%rbp), %edx
	callq	_pick_mode_by_ref
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movl	-44(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	-48(%rbp), %r8d
	leaq	L_.str.8(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_3
LBB0_16:
	movq	-56(%rbp), %rax
LBB0_17:
	movl	(%rax), %edi
	movl	%edi, 80(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 84(%r14)
	movl	20(%rax), %edx
	movdqu	8(%rax), %xmm0
	pshufd	$200, %xmm0, %xmm1              ## xmm1 = xmm0[0,2,0,3]
	pinsrd	$0, %edi, %xmm1
	pinsrd	$3, %ecx, %xmm1
	psubd	%xmm1, %xmm0
	movdqu	%xmm0, 88(%r14)
	movl	24(%rax), %esi
	movl	28(%rax), %ebx
	subl	%ebx, %esi
	movl	%esi, 104(%r14)
	subl	%edx, %ebx
	movl	%ebx, 108(%r14)
	movl	32(%rax), %eax
	movl	%eax, 112(%r14)
	movl	%edi, 16(%r14)
	movl	%ecx, 20(%r14)
	shll	$2, %edi
	movl	%edi, 24(%r14)
	movabsq	$137438953504, %rax             ## imm = 0x2000000020
	movq	%rax, 28(%r14)
	imull	%ecx, %edi
	movl	%edi, 36(%r14)
	movq	_M_DEVBUF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BUS_SPACE_MAXADDR_32BIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	xorl	%ecx, %ecx
	callq	_contigmalloc
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_vtophys
	movq	%rax, 48(%r14)
	movq	_FB_FLAG_MEMATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movl	(%r13), %esi
	movl	(%rbx), %r8d
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movl	$768, %edi                      ## imm = 0x300
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_contigmalloc
	movq	%rax, (%r14)
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	movl	$20, %ecx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [16,16,16,16]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [20,20,20,20]
	movdqa	LCPI0_7(%rip), %xmm7            ## xmm7 = [24,24,24,24]
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm0
	paddd	%xmm8, %xmm0
	movdqa	%xmm1, %xmm3
	pand	%xmm2, %xmm3
	pand	%xmm2, %xmm0
	movdqu	%xmm3, -80(%rax,%rcx,4)
	movdqu	%xmm0, -64(%rax,%rcx,4)
	movdqa	%xmm1, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm1, %xmm3
	paddd	%xmm4, %xmm3
	pand	%xmm2, %xmm0
	pand	%xmm2, %xmm3
	movdqu	%xmm0, -48(%rax,%rcx,4)
	movdqu	%xmm3, -32(%rax,%rcx,4)
	movdqa	%xmm1, %xmm0
	paddd	%xmm5, %xmm0
	movdqa	%xmm1, %xmm3
	paddd	%xmm6, %xmm3
	pand	%xmm2, %xmm0
	pand	%xmm2, %xmm3
	movdqu	%xmm0, -16(%rax,%rcx,4)
	movdqu	%xmm3, (%rax,%rcx,4)
	paddd	%xmm7, %xmm1
	addq	$24, %rcx
	cmpq	$788, %rcx                      ## imm = 0x314
	jne	LBB0_18
## %bb.19:
	movl	(%r13), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	movl	$2048, %edi                     ## imm = 0x800
	xorl	%ecx, %ecx
	callq	_contigmalloc
	movq	%rax, 72(%r14)
	movq	%r14, %rdi
	callq	_diu_init
	movl	%r15d, %edi
	callq	_device_get_nameunit
	movl	%eax, 56(%r14)
	movl	%r15d, %edi
	callq	_device_get_unit
	leaq	L_.str.9(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_device_add_child
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.10(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	8(%r14), %rax
LBB0_21:
	movq	%rax, %rdi
	callq	_device_probe_and_attach
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_23
LBB0_13:
	movq	-64(%rbp), %rdx
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_diu_spec,4,2                   ## @diu_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_INTR_TYPE_BIO,4,2              ## @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_diu_intr,4,2                   ## @diu_intr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to alloc interrupt resource.\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"No EDID data and no video-mode env set\n"

L_.str.5:                               ## @.str.5
	.asciz	"Error parsing EDID\n"

L_.str.6:                               ## @.str.6
	.asciz	"%dx%d@%d"

L_.str.7:                               ## @.str.7
	.asciz	"Cannot parse video mode: %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Cannot find mode for %dx%d@%d"

	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ## @BUS_SPACE_MAXADDR_32BIT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_FB_FLAG_MEMATTR,4,2            ## @FB_FLAG_MEMATTR
	.comm	_VM_MEMATTR_DEFAULT,4,2         ## @VM_MEMATTR_DEFAULT
L_.str.9:                               ## @.str.9
	.asciz	"fbd"

L_.str.10:                              ## @.str.10
	.asciz	"Can't attach fbd device\n"

L_.str.11:                              ## @.str.11
	.asciz	"Failed to attach fbd device: %d\n"

	.no_dead_strip	_diu_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function diu_attach
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_diu_attach:                            ; @diu_attach
	.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
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #128]
Lloh0:
	adrp	x8, _diu_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _diu_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0, #120]
	mov	x0, x19
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x21, x0
	ldr	x8, [x20, #120]
	ldr	w1, [x8, #4]
Lloh5:
	adrp	x8, _INTR_TYPE_BIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTR_TYPE_BIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh11:
	adrp	x8, _diu_intr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _diu_intr@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x6, x20, #116
	mov	x0, x19
	mov	x3, #0
	mov	x5, x20
	bl	_bus_setup_intr
	cbz	w0, LBB0_7
; %bb.3:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_device_printf
LBB0_5:
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_6:
	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_7:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #48
	mov	x0, x21
	bl	_OF_getprop_alloc
	cmp	x0, #0
	b.le	LBB0_11
LBB0_8:
	ldr	x0, [sp, #48]
	cbz	x0, LBB0_13
; %bb.9:
	add	x1, sp, #56
	bl	_edid_parse
	cbz	x0, LBB0_16
; %bb.10:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	x0, [sp, #48]
	bl	_OF_prop_free
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_device_get_name
	mov	x21, x0
	mov	x0, x19
	bl	_device_get_unit
	mov	x1, x0
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x3, sp, #40
	mov	x0, x21
	bl	_resource_string_value
	cbz	x0, LBB0_8
; %bb.12:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_13:
	ldr	x0, [sp, #40]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #32
	add	x3, sp, #56
	add	x4, sp, #36
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_23
; %bb.14:
	ldp	w0, w2, [sp, #32]
	ldr	w1, [sp, #56]
	bl	_pick_mode_by_ref
	cbnz	x0, LBB0_17
; %bb.15:
	ldp	w8, w10, [sp, #32]
	ldr	w9, [sp, #56]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_16:
	ldr	x0, [sp, #56]
LBB0_17:
	ldr	w8, [x0]
	str	w8, [x20, #80]
	ldr	w9, [x0, #4]
	str	w9, [x20, #84]
	ldur	q0, [x0, #8]
	fmov	s1, w8
	mov.s	v1[1], v0[2]
	mov.s	v1[2], v0[0]
	mov.s	v1[3], w9
	sub.4s	v1, v0, v1
	stur	q1, [x20, #88]
	ldp	w10, w11, [x0, #24]
	sub	w10, w10, w11
	mov.s	w12, v0[3]
	sub	w11, w11, w12
	stp	w10, w11, [x20, #104]
	ldr	w10, [x0, #32]
	str	w10, [x20, #112]
	stp	w8, w9, [x20, #16]
	lsl	w8, w8, #2
	str	w8, [x20, #24]
	movi.2s	v0, #32
	stur	d0, [x20, #28]
	mul	w0, w9, w8
	str	w0, [x20, #36]
Lloh31:
	adrp	x21, _M_DEVBUF@GOTPAGE
Lloh32:
	ldr	x21, [x21, _M_DEVBUF@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh33:
	adrp	x22, _M_ZERO@GOTPAGE
Lloh34:
	ldr	x22, [x22, _M_ZERO@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh35:
	adrp	x23, _BUS_SPACE_MAXADDR_32BIT@GOTPAGE
Lloh36:
	ldr	x23, [x23, _BUS_SPACE_MAXADDR_32BIT@GOTPAGEOFF]
	ldr	w4, [x23]
Lloh37:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh38:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w5, [x24]
	mov	w3, #0
	mov	w6, #0
	bl	_contigmalloc
	str	x0, [x20, #40]
	bl	_vtophys
	str	x0, [x20, #48]
Lloh39:
	adrp	x8, _FB_FLAG_MEMATTR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FB_FLAG_MEMATTR@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #60]
	ldr	w1, [x21]
	ldr	w4, [x23]
	ldr	w5, [x24]
	mov	w0, #768
	mov	w2, #0
	mov	w3, #0
	mov	w6, #0
	bl	_contigmalloc
	mov	x8, #0
	str	x0, [x20]
Lloh45:
	adrp	x9, lCPI0_0@PAGE
Lloh46:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	movi.4s	v1, #4
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.2d	v4, #0x0000ff000000ff
	movi.4s	v5, #16
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v1
	add.4s	v7, v0, v2
	add.4s	v16, v0, v3
	and.16b	v17, v0, v4
	and.16b	v6, v6, v4
	and.16b	v7, v7, v4
	and.16b	v16, v16, v4
	add	x9, x0, x8
	stp	q17, q6, [x9]
	stp	q7, q16, [x9, #32]
	add.4s	v0, v0, v5
	add	x8, x8, #64
	cmp	x8, #3072
	b.ne	LBB0_18
; %bb.19:
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w4, [x23]
	ldr	w5, [x24]
	mov	w0, #2048
	mov	w3, #0
	mov	w6, #0
	bl	_contigmalloc
	str	x0, [x20, #72]
	mov	x0, x20
	bl	_diu_init
	mov	x0, x19
	bl	_device_get_nameunit
	str	w0, [x20, #56]
	mov	x0, x19
	bl	_device_get_unit
	mov	x2, x0
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_device_add_child
	str	x0, [x20, #8]
	cbnz	x0, LBB0_21
; %bb.20:
Lloh49:
	adrp	x1, l_.str.10@PAGE
Lloh50:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	x0, [x20, #8]
LBB0_21:
	bl	_device_probe_and_attach
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.22:
	str	x0, [sp]
Lloh51:
	adrp	x1, l_.str.11@PAGE
Lloh52:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	w0, #0
	b	LBB0_6
LBB0_23:
	ldr	x8, [sp, #40]
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.7@PAGE
Lloh54:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdr	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_diu_spec,4,2                   ; @diu_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_INTR_TYPE_BIO,4,2              ; @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_diu_intr,4,2                   ; @diu_intr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to alloc interrupt resource.\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"No EDID data and no video-mode env set\n"

l_.str.5:                               ; @.str.5
	.asciz	"Error parsing EDID\n"

l_.str.6:                               ; @.str.6
	.asciz	"%dx%d@%d"

l_.str.7:                               ; @.str.7
	.asciz	"Cannot parse video mode: %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Cannot find mode for %dx%d@%d"

	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ; @BUS_SPACE_MAXADDR_32BIT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_FB_FLAG_MEMATTR,4,2            ; @FB_FLAG_MEMATTR
	.comm	_VM_MEMATTR_DEFAULT,4,2         ; @VM_MEMATTR_DEFAULT
l_.str.9:                               ; @.str.9
	.asciz	"fbd"

l_.str.10:                              ; @.str.10
	.asciz	"Can't attach fbd device\n"

l_.str.11:                              ; @.str.11
	.asciz	"Failed to attach fbd device: %d\n"

	.no_dead_strip	_diu_attach
.subsections_via_symbols
