	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_mcdi_check_supported
_efx_mcdi_check_supported:              ## @efx_mcdi_check_supported
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.1:
	cmpl	$1, %ecx
	ja	LBB0_4
## %bb.2:
	movq	_MC_CMD_CMD_SPACE_ESCAPE_7@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jae	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movq	_MCDI_CTL_SDU_LEN_MAX_V2@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jb	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	cmpl	$1, %ecx
	ja	LBB0_9
## %bb.6:
	movq	_MCDI_CTL_SDU_LEN_MAX_V1@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jae	LBB0_9
LBB0_7:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_CMD_SPACE_ESCAPE_7,4,2  ## @MC_CMD_CMD_SPACE_ESCAPE_7
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MCDI_CTL_SDU_LEN_MAX_V2,8,3    ## @MCDI_CTL_SDU_LEN_MAX_V2
	.comm	_MCDI_CTL_SDU_LEN_MAX_V1,8,3    ## @MCDI_CTL_SDU_LEN_MAX_V1
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_efx_mcdi_check_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_mcdi_check_supported
_efx_mcdi_check_supported:              ; @efx_mcdi_check_supported
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _MC_CMD_CMD_SPACE_ESCAPE_7@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MC_CMD_CMD_SPACE_ESCAPE_7@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w9, w1, #2, ls
	b.lo	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _MCDI_CTL_SDU_LEN_MAX_V2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCDI_CTL_SDU_LEN_MAX_V2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x2
	b.lo	LBB0_6
; %bb.3:
Lloh6:
	adrp	x9, _MCDI_CTL_SDU_LEN_MAX_V1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCDI_CTL_SDU_LEN_MAX_V1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	w8, #1
	ccmp	x9, x2, #2, ls
	b.lo	LBB0_6
; %bb.4:
	mov	w0, #0
	ret
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_CMD_SPACE_ESCAPE_7,4,2  ; @MC_CMD_CMD_SPACE_ESCAPE_7
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MCDI_CTL_SDU_LEN_MAX_V2,8,3    ; @MCDI_CTL_SDU_LEN_MAX_V2
	.comm	_MCDI_CTL_SDU_LEN_MAX_V1,8,3    ; @MCDI_CTL_SDU_LEN_MAX_V1
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_efx_mcdi_check_supported
.subsections_via_symbols
