	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hibmc_pci_probe
_hibmc_pci_probe:                       ## @hibmc_pci_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_hibmc_driver@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_drm_dev_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_hibmc_load
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	callq	_hibmc_unload
	movl	%r12d, %r15d
LBB0_7:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_8:
	movq	%rbx, %rdi
	callq	_drm_dev_put
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hibmc_driver,4,2               ## @hibmc_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate drm_device\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable pci device: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to load hibmc: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to register drv for userspace access: %d\n"

	.no_dead_strip	_hibmc_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hibmc_pci_probe
_hibmc_pci_probe:                       ; @hibmc_pci_probe
	.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
Lloh0:
	adrp	x0, _hibmc_driver@GOTPAGE
Lloh1:
	ldr	x0, [x0, _hibmc_driver@GOTPAGEOFF]
	mov	x1, x20
	bl	_drm_dev_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_2:
	str	x20, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_pci_enable_device
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_hibmc_load
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_drm_dev_register
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.7:
	str	x21, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_hibmc_unload
LBB0_8:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	mov	x0, x20
	bl	_pci_disable_device
LBB0_9:
	mov	x0, x19
	bl	_drm_dev_put
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hibmc_driver,4,2               ; @hibmc_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate drm_device\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable pci device: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to load hibmc: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to register drv for userspace access: %d\n"

	.no_dead_strip	_hibmc_pci_probe
.subsections_via_symbols
