	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_nfc_if_version
_mei_nfc_if_version:                    ## @mei_nfc_if_version
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, -56(%rbp)
	movq	_MEI_NFC_SUBCMD_IF_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_MEI_NFC_CMD_MAINTENANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%rdi), %r13
	leaq	4(%r13), %rdi
	callq	_mutex_is_locked
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_MEI_CL_IO_TX_BLOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$12, %edx
	callq	___mei_cl_send
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movl	$16, %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	___mei_cl_recv
	cmpl	$15, %eax
	jg	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_memcpy
	movl	(%r13), %edi
	movl	8(%r14), %edx
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_NFC_SUBCMD_IF_VERSION,4,2  ## @MEI_NFC_SUBCMD_IF_VERSION
	.comm	_MEI_NFC_CMD_MAINTENANCE,4,2    ## @MEI_NFC_CMD_MAINTENANCE
	.comm	_MEI_CL_IO_TX_BLOCKING,4,2      ## @MEI_CL_IO_TX_BLOCKING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not send IF version cmd\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Could not read IF version\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"NFC MEI VERSION: IVN 0x%x Vendor ID 0x%x Type 0x%x\n"

	.no_dead_strip	_mei_nfc_if_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_nfc_if_version
_mei_nfc_if_version:                    ; @mei_nfc_if_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	mov	w8, #1
Lloh0:
	adrp	x9, _MEI_NFC_SUBCMD_IF_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEI_NFC_SUBCMD_IF_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
Lloh3:
	adrp	x8, _MEI_NFC_CMD_MAINTENANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEI_NFC_CMD_MAINTENANCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x23, [x0]
	add	x0, x23, #4
	bl	_mutex_is_locked
	bl	_WARN_ON
Lloh6:
	adrp	x8, _MEI_CL_IO_TX_BLOCKING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEI_CL_IO_TX_BLOCKING@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x21
	mov	w2, #12
	bl	___mei_cl_send
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #16
	mov	w3, #0
	mov	w4, #0
	bl	___mei_cl_recv
	cmp	w0, #15
	b.gt	LBB0_6
; %bb.3:
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	mov	x22, x0
	ldr	w0, [x23]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #12
	bl	_memcpy
	ldr	w0, [x23]
	ldp	w3, w2, [x19, #4]
	ldr	w4, [x19]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w22, #0
LBB0_7:
	mov	x0, x20
	bl	_kfree
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_NFC_SUBCMD_IF_VERSION,4,2  ; @MEI_NFC_SUBCMD_IF_VERSION
	.comm	_MEI_NFC_CMD_MAINTENANCE,4,2    ; @MEI_NFC_CMD_MAINTENANCE
	.comm	_MEI_CL_IO_TX_BLOCKING,4,2      ; @MEI_CL_IO_TX_BLOCKING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not send IF version cmd\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Could not read IF version\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"NFC MEI VERSION: IVN 0x%x Vendor ID 0x%x Type 0x%x\n"

	.no_dead_strip	_mei_nfc_if_version
.subsections_via_symbols
