	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hibmc_load
_hibmc_load:                            ## @hibmc_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, %r14
	movl	24(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, 16(%r14)
	movq	%r14, 8(%rax)
	movq	%rax, %rdi
	callq	_hibmc_hw_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	%r15, %rdi
	callq	_hibmc_mm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r15, %rdi
	callq	_hibmc_kms_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_drm_vblank_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_7:
	movl	$0, (%r15)
	movq	(%r14), %rdi
	callq	_pci_enable_msi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	movl	$1, (%r15)
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_irq_install
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	movl	%eax, %esi
	callq	_DRM_WARN
LBB0_12:
	movq	%r14, %rdi
	callq	_drm_mode_config_reset
	movq	%r15, %rdi
	callq	_hibmc_fbdev_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
LBB0_15:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_16:
	movq	%r14, %rdi
	callq	_hibmc_unload
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory to allocate for hibmc_drm_private\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize vblank: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"enabling MSI failed: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"install irq failed: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to initialize fbdev: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize drm driver: %d\n"

	.no_dead_strip	_hibmc_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hibmc_load
_hibmc_load:                            ; @hibmc_load
	.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	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #16]
	str	x19, [x0, #8]
	bl	_hibmc_hw_init
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.2:
	mov	x0, x20
	bl	_hibmc_mm_init
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.3:
	mov	x0, x20
	bl	_hibmc_kms_init
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.4:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_drm_vblank_init
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_7:
	str	wzr, [x20]
	ldr	x0, [x19]
	bl	_pci_enable_msi
	cbz	w0, LBB0_9
; %bb.8:
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_irq_install
	cbz	w0, LBB0_12
; %bb.10:
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_DRM_WARN
LBB0_12:
	mov	x0, x19
	bl	_drm_mode_config_reset
	mov	x0, x20
	bl	_hibmc_fbdev_init
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.13:
	str	x21, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_14:
	bl	_DRM_ERROR
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_15:
	mov	x0, x19
	bl	_hibmc_unload
	str	x21, [sp]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
LBB0_16:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory to allocate for hibmc_drm_private\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize vblank: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"enabling MSI failed: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"install irq failed: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to initialize fbdev: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize drm driver: %d\n"

	.no_dead_strip	_hibmc_load
.subsections_via_symbols
