	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function host1x_drm_load
LCPI0_0:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_host1x_drm_load:                       ## @host1x_drm_load
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	48(%rdi), %edi
	callq	_device_get_softc
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_drm_mode_config_init
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [32,32,4096,4096]
	movups	%xmm0, 16(%rbx)
	movq	_mode_config_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	%r14, %rdi
	callq	_host1x_drm_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	_drm_vblank_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_drm_mode_config_reset
	movq	%rbx, %rdi
	callq	_tegra_drm_fb_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_tegra_drm_fb_destroy
	movq	%rbx, %rdi
	callq	_drm_vblank_cleanup
LBB0_5:
	movq	%r14, %rdi
	callq	_host1x_drm_exit
LBB0_6:
	movq	%rbx, %rdi
	callq	_drm_mode_config_cleanup
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mode_config_funcs,4,2          ## @mode_config_funcs
	.no_dead_strip	_host1x_drm_load
.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 host1x_drm_load
lCPI0_0:
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.long	4096                            ; 0x1000
	.long	4096                            ; 0x1000
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_host1x_drm_load:                       ; @host1x_drm_load
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w0, [x0, #48]
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x19
	bl	_drm_mode_config_init
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19, #16]
Lloh2:
	adrp	x8, _mode_config_funcs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mode_config_funcs@GOTPAGEOFF]
	str	x8, [x19, #40]
	mov	x0, x20
	bl	_host1x_drm_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh4:
	adrp	x8, lCPI0_1@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w1, [x19, #32]
	mov	x0, x19
	bl	_drm_vblank_init
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_drm_mode_config_reset
	mov	x0, x19
	bl	_tegra_drm_fb_init
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_tegra_drm_fb_destroy
	mov	x0, x19
	bl	_drm_vblank_cleanup
LBB0_4:
	mov	x0, x20
	bl	_host1x_drm_exit
LBB0_5:
	mov	x0, x19
	bl	_drm_mode_config_cleanup
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mode_config_funcs,4,2          ; @mode_config_funcs
	.no_dead_strip	_host1x_drm_load
.subsections_via_symbols
