	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_mkhi_fix
_mei_mkhi_fix:                          ## @mei_mkhi_fix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_10
LBB0_2:
	movq	%rbx, %rdi
	callq	_mei_cldev_enable
	testl	%eax, %eax
	je	LBB0_3
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_mei_fwver
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_6:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_mei_osver
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mei_cldev_disable              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW version command failed %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"OS version command failed %d\n"

	.no_dead_strip	_mei_mkhi_fix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_mkhi_fix
_mei_mkhi_fix:                          ; @mei_mkhi_fix
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mei_cldev_enable
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_mei_fwver
	tbz	w0, #31, LBB0_7
; %bb.6:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_mei_osver
	tbz	w0, #31, LBB0_10
; %bb.9:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mei_cldev_disable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW version command failed %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"OS version command failed %d\n"

	.no_dead_strip	_mei_mkhi_fix
.subsections_via_symbols
