	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eocre_get_mfw_drv_role
_eocre_get_mfw_drv_role:                ## @eocre_get_mfw_drv_role
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %eax
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.3:
	movq	_DRV_ROLE_KDUMP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_DRV_ROLE_OS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_ROLE_OS,4,2                ## @DRV_ROLE_OS
	.comm	_DRV_ROLE_KDUMP,4,2             ## @DRV_ROLE_KDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected driver role %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_eocre_get_mfw_drv_role
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eocre_get_mfw_drv_role
_eocre_get_mfw_drv_role:                ; @eocre_get_mfw_drv_role
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	mov	x8, x1
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _DRV_ROLE_KDUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_ROLE_KDUMP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _DRV_ROLE_OS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRV_ROLE_OS@GOTPAGEOFF]
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_DP_ERR
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_ROLE_OS,4,2                ; @DRV_ROLE_OS
	.comm	_DRV_ROLE_KDUMP,4,2             ; @DRV_ROLE_KDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected driver role %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_eocre_get_mfw_drv_role
.subsections_via_symbols
