	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc_init_client
_dc_init_client:                        ## @dc_init_client
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r12
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jge	LBB0_2
## %bb.1:
	movq	%rax, (%r15)
LBB0_2:
	leaq	8(%r15), %rdi
	leaq	16(%r12), %rbx
	movq	_dc_crtc_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_drm_crtc_init
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_drm_mode_crtc_set_gamma_size
	movq	_dc_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_crtc_helper_add
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dc_init_planes
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
	jmp	LBB0_7
LBB0_4:
	movq	_WIN_A_UF_INT@GOTPCREL(%rip), %rax
	movq	_WIN_B_UF_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_WIN_C_UF_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_WIN_A_OF_INT@GOTPCREL(%rip), %r15
	orl	(%r15), %edx
	movq	_DC_CMD_INT_TYPE@GOTPCREL(%rip), %rax
	movq	_WIN_B_OF_INT@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	movl	(%rax), %esi
	movq	_WIN_C_OF_INT@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	movq	%r12, %rdi
	callq	_WR4
	movq	_DC_CMD_INT_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WIN_B_UF_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WIN_A_UF_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_WIN_C_UF_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r15), %edx
	orl	(%rbx), %edx
	orl	(%r13), %edx
	movq	%r12, %rdi
	callq	_WR4
	movq	_DC_CMD_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_DC_CMD_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_WR4
	movq	_INTR_TYPE_MISC@GOTPCREL(%rip), %rax
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	24(%r12), %esi
	movq	_dc_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rax
	addq	$20, %rax
	movq	%rax, (%rsp)
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
	movl	%ebx, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VM_MEMATTR_WRITE_COMBINING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$262144, %edi                   ## imm = 0x40000
	xorl	%edx, %edx
	movq	$-1, %rcx
	xorl	%r9d, %r9d
	callq	_kmem_alloc_contig
	movl	%eax, 8(%r12)
	movl	%eax, %edi
	callq	_vtophys
	movl	%eax, 12(%r12)
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dc_crtc_funcs,4,2              ## @dc_crtc_funcs
	.comm	_dc_crtc_helper_funcs,4,2       ## @dc_crtc_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot init planes\n"

	.comm	_DC_CMD_INT_TYPE,4,2            ## @DC_CMD_INT_TYPE
	.comm	_WIN_A_UF_INT,4,2               ## @WIN_A_UF_INT
	.comm	_WIN_B_UF_INT,4,2               ## @WIN_B_UF_INT
	.comm	_WIN_C_UF_INT,4,2               ## @WIN_C_UF_INT
	.comm	_WIN_A_OF_INT,4,2               ## @WIN_A_OF_INT
	.comm	_WIN_B_OF_INT,4,2               ## @WIN_B_OF_INT
	.comm	_WIN_C_OF_INT,4,2               ## @WIN_C_OF_INT
	.comm	_DC_CMD_INT_POLARITY,4,2        ## @DC_CMD_INT_POLARITY
	.comm	_DC_CMD_INT_ENABLE,4,2          ## @DC_CMD_INT_ENABLE
	.comm	_DC_CMD_INT_MASK,4,2            ## @DC_CMD_INT_MASK
	.comm	_INTR_TYPE_MISC,4,2             ## @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_dc_intr,4,2                    ## @dc_intr
L_.str.1:                               ## @.str.1
	.asciz	"Cannot register interrupt handler\n"

	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_MEMATTR_WRITE_COMBINING,4,2 ## @VM_MEMATTR_WRITE_COMBINING
	.no_dead_strip	_dc_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dc_init_client
_dc_init_client:                        ; @dc_init_client
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	ldr	x9, [x21]
	ldr	x8, [x0]
	cmp	x9, x8
	b.ge	LBB0_2
; %bb.1:
	str	x8, [x21]
LBB0_2:
	add	x0, x21, #8
	add	x22, x19, #16
Lloh0:
	adrp	x2, _dc_crtc_funcs@GOTPAGE
Lloh1:
	ldr	x2, [x2, _dc_crtc_funcs@GOTPAGEOFF]
	mov	x1, x22
	bl	_drm_crtc_init
	mov	x0, x22
	mov	w1, #256
	bl	_drm_mode_crtc_set_gamma_size
Lloh2:
	adrp	x1, _dc_crtc_helper_funcs@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dc_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_crtc_helper_add
	mov	x0, x19
	mov	x1, x21
	bl	_dc_init_planes
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _DC_CMD_INT_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_CMD_INT_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x21, _WIN_A_UF_INT@GOTPAGE
Lloh10:
	ldr	x21, [x21, _WIN_A_UF_INT@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh11:
	adrp	x22, _WIN_B_UF_INT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _WIN_B_UF_INT@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh13:
	adrp	x23, _WIN_C_UF_INT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _WIN_C_UF_INT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh15:
	adrp	x24, _WIN_A_OF_INT@GOTPAGE
Lloh16:
	ldr	x24, [x24, _WIN_A_OF_INT@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh17:
	adrp	x25, _WIN_B_OF_INT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _WIN_B_OF_INT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh19:
	adrp	x26, _WIN_C_OF_INT@GOTPAGE
Lloh20:
	ldr	x26, [x26, _WIN_C_OF_INT@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_WR4
Lloh21:
	adrp	x8, _DC_CMD_INT_POLARITY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DC_CMD_INT_POLARITY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_WR4
Lloh24:
	adrp	x8, _DC_CMD_INT_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DC_CMD_INT_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
Lloh27:
	adrp	x8, _DC_CMD_INT_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DC_CMD_INT_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR4
	ldr	w1, [x19, #24]
Lloh30:
	adrp	x8, _INTR_TYPE_MISC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INTR_TYPE_MISC@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh36:
	adrp	x8, _dc_intr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _dc_intr@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
	add	x6, x19, #20
	mov	x0, x20
	mov	x3, #0
	mov	x5, x19
	bl	_bus_setup_intr
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_device_printf
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh41:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh45:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh47:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh49:
	ldr	w4, [x8]
Lloh50:
	adrp	x8, _VM_MEMATTR_WRITE_COMBINING@GOTPAGE
Lloh51:
	ldr	x8, [x8, _VM_MEMATTR_WRITE_COMBINING@GOTPAGEOFF]
Lloh52:
	ldr	w6, [x8]
	mov	w0, #262144
	mov	w2, #0
	mov	x3, #-1
	mov	w5, #0
	bl	_kmem_alloc_contig
	str	w0, [x19, #8]
	bl	_vtophys
	str	w0, [x19, #12]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_dc_crtc_funcs,4,2              ; @dc_crtc_funcs
	.comm	_dc_crtc_helper_funcs,4,2       ; @dc_crtc_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot init planes\n"

	.comm	_DC_CMD_INT_TYPE,4,2            ; @DC_CMD_INT_TYPE
	.comm	_WIN_A_UF_INT,4,2               ; @WIN_A_UF_INT
	.comm	_WIN_B_UF_INT,4,2               ; @WIN_B_UF_INT
	.comm	_WIN_C_UF_INT,4,2               ; @WIN_C_UF_INT
	.comm	_WIN_A_OF_INT,4,2               ; @WIN_A_OF_INT
	.comm	_WIN_B_OF_INT,4,2               ; @WIN_B_OF_INT
	.comm	_WIN_C_OF_INT,4,2               ; @WIN_C_OF_INT
	.comm	_DC_CMD_INT_POLARITY,4,2        ; @DC_CMD_INT_POLARITY
	.comm	_DC_CMD_INT_ENABLE,4,2          ; @DC_CMD_INT_ENABLE
	.comm	_DC_CMD_INT_MASK,4,2            ; @DC_CMD_INT_MASK
	.comm	_INTR_TYPE_MISC,4,2             ; @INTR_TYPE_MISC
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_dc_intr,4,2                    ; @dc_intr
l_.str.1:                               ; @.str.1
	.asciz	"Cannot register interrupt handler\n"

	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_MEMATTR_WRITE_COMBINING,4,2 ; @VM_MEMATTR_WRITE_COMBINING
	.no_dead_strip	_dc_init_client
.subsections_via_symbols
