	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcu_attach
_dcu_attach:                            ## @dcu_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	%r14, (%rax)
	movq	_dcu_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	80(%rbx), %rdx
	movq	%r14, %rdi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	80(%rbx), %rax
	movl	(%rax), %edi
	callq	_rman_get_bustag
	movl	%eax, 92(%rbx)
	movq	80(%rbx), %rax
	movl	(%rax), %edi
	callq	_rman_get_bushandle
	movl	%eax, 88(%rbx)
	movq	80(%rbx), %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	_dcu_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rax
	addq	$72, %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	leaq	-40(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_panel_info
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, 64(%rbx)
	xorl	%eax, %eax
	callq	_tcon_bypass
	leaq	L_.str.3(%rip), %rdi
	callq	_devclass_find
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_devclass_get_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movl	-32(%rbp), %esi
	movq	_GPIO_PIN_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GPIO_PIN_SETFLAGS
	movl	-32(%rbp), %esi
	movq	_GPIO_PIN_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_GPIO_PIN_SET
	movl	-40(%rbp), %eax
	movl	%eax, 16(%rbx)
	movl	-36(%rbp), %edi
	movl	%edi, 20(%rbx)
	leal	(%rax,%rax,2), %eax
	movl	%eax, 24(%rbx)
	movabsq	$103079215128, %rcx             ## imm = 0x1800000018
	movq	%rcx, 28(%rbx)
	imull	%eax, %edi
	movl	%edi, 36(%rbx)
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	movl	$-1, %r8d
	callq	_contigmalloc
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_vtophys
	movq	%rax, 48(%rbx)
	movq	40(%rbx), %rdi
	movl	36(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_dcu_init
	movq	%r14, %rdi
	callq	_device_get_nameunit
	movl	%eax, 56(%rbx)
	movq	%r14, %rdi
	callq	_device_get_unit
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_device_add_child
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_printf
	movq	8(%rbx), %rax
LBB0_11:
	movq	%rax, %rdi
	callq	_device_probe_and_attach
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_device_printf
	jmp	LBB0_13
LBB0_8:
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_device_printf
	movl	$1, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_dcu_spec,4,2                   ## @dcu_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	_dcu_intr,4,2                   ## @dcu_intr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to alloc interrupt resource.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Can't get panel info\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Error: failed to get the GPIO dev\n"

	.comm	_GPIO_PIN_OUTPUT,4,2            ## @GPIO_PIN_OUTPUT
	.comm	_GPIO_PIN_HIGH,4,2              ## @GPIO_PIN_HIGH
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"fbd"

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

L_.str.7:                               ## @.str.7
	.asciz	"Failed to attach fbd device\n"

	.no_dead_strip	_dcu_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcu_attach
_dcu_attach:                            ; @dcu_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	str	x20, [x0]
Lloh0:
	adrp	x8, _dcu_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dcu_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0, #80]
	mov	x0, x20
	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_6
LBB0_2:
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	bl	_rman_get_bustag
	str	w0, [x19, #92]
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	bl	_rman_get_bushandle
	str	w0, [x19, #88]
	ldr	x8, [x19, #80]
	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, _dcu_intr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dcu_intr@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x6, x19, #72
	mov	x0, x20
	mov	x3, #0
	mov	x5, x19
	bl	_bus_setup_intr
	cbz	w0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x21, sp
	mov	x1, sp
	mov	x0, x19
	bl	_get_panel_info
	cbz	x0, LBB0_8
; %bb.5:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_device_printf
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	str	x21, [x19, #64]
	bl	_tcon_bypass
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_devclass_find
	mov	w1, #0
	bl	_devclass_get_device
	cbz	x0, LBB0_13
; %bb.9:
	mov	x21, x0
	ldr	w1, [sp, #8]
Lloh23:
	adrp	x8, _GPIO_PIN_OUTPUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GPIO_PIN_OUTPUT@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_GPIO_PIN_SETFLAGS
	ldr	w1, [sp, #8]
Lloh26:
	adrp	x8, _GPIO_PIN_HIGH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GPIO_PIN_HIGH@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_GPIO_PIN_SET
	ldp	w8, w9, [sp]
	stp	w8, w9, [x19, #16]
	add	w8, w8, w8, lsl #1
	str	w8, [x19, #24]
	movi.2s	v0, #24
	stur	d0, [x19, #28]
	mul	w0, w9, w8
	str	w0, [x19, #36]
Lloh29:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _M_ZERO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _M_ZERO@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w5, [x8]
	mov	w3, #0
	mov	w4, #-1
	mov	w6, #0
	bl	_contigmalloc
	str	x0, [x19, #40]
	bl	_vtophys
	str	x0, [x19, #48]
	ldr	x0, [x19, #40]
	ldr	w2, [x19, #36]
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	bl	_dcu_init
	mov	x0, x20
	bl	_device_get_nameunit
	str	w0, [x19, #56]
	mov	x0, x20
	bl	_device_get_unit
	mov	x2, x0
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_device_add_child
	str	x0, [x19, #8]
	cbnz	x0, LBB0_11
; %bb.10:
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	ldr	x0, [x19, #8]
LBB0_11:
	bl	_device_probe_and_attach
	cbz	x0, LBB0_7
; %bb.12:
	ldr	x0, [x19]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_device_printf
	mov	w0, #0
	b	LBB0_7
LBB0_13:
	ldr	x0, [x19]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_device_printf
	mov	w0, #1
	b	LBB0_7
	.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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_dcu_spec,4,2                   ; @dcu_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	_dcu_intr,4,2                   ; @dcu_intr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to alloc interrupt resource.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Can't get panel info\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Error: failed to get the GPIO dev\n"

	.comm	_GPIO_PIN_OUTPUT,4,2            ; @GPIO_PIN_OUTPUT
	.comm	_GPIO_PIN_HIGH,4,2              ; @GPIO_PIN_HIGH
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"fbd"

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

l_.str.7:                               ; @.str.7
	.asciz	"Failed to attach fbd device\n"

	.no_dead_strip	_dcu_attach
.subsections_via_symbols
