	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st95hf_in_send_cmd
_st95hf_in_send_cmd:                    ## @st95hf_in_send_cmd
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_nfc_digital_get_drvdata
	movq	%rax, %r13
	movq	_MAX_RESPONSE_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nfc_alloc_recv_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%r13), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %ebx
	incl	%ebx
	movl	48(%r13), %esi
	movq	%r15, %rdi
	callq	_skb_put_u8
LBB0_6:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_skb_push
	movq	_ST95HF_COMMAND_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_SEND_RECEIVE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	%ebx, 8(%rcx)
	movq	%r14, 40(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%r13)
	movl	12(%rcx), %eax
	movq	_ISO14443A_RATS_REQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movq	(%r12), %rax
	movq	_NFC_PROTO_ISO14443@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	$1, 24(%r13)
LBB0_9:
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_down_killable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_16
LBB0_11:
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movq	_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_st95hf_spi_send
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_up
	jmp	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree_skb
	jmp	LBB0_16
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree_skb
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RESPONSE_BUFFER_SIZE,4,2   ## @MAX_RESPONSE_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ST95HF_COMMAND_SEND,4,2        ## @ST95HF_COMMAND_SEND
	.comm	_SEND_RECEIVE_CMD,4,2           ## @SEND_RECEIVE_CMD
	.comm	_ISO14443A_RATS_REQ,4,2         ## @ISO14443A_RATS_REQ
	.comm	_NFC_PROTO_ISO14443,8,3         ## @NFC_PROTO_ISO14443
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Semaphore is not found up in st95hf_in_send_cmd\n"

	.comm	_ASYNC,4,2                      ## @ASYNC
L_.str.1:                               ## @.str.1
	.asciz	"Error %d trying to perform data_exchange"

	.no_dead_strip	_st95hf_in_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st95hf_in_send_cmd
_st95hf_in_send_cmd:                    ; @st95hf_in_send_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x23, x3
	mov	x20, x1
	mov	x22, x0
	bl	_nfc_digital_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_RESPONSE_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RESPONSE_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_nfc_alloc_recv_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
	ldr	w25, [x20]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_4:
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.5:
	ldr	w8, [x20]
	add	w25, w8, #1
	ldr	w1, [x21, #48]
	mov	x0, x20
	bl	_skb_put_u8
LBB0_6:
	mov	x0, x20
	mov	w1, #3
	bl	_skb_push
Lloh9:
	adrp	x8, _ST95HF_COMMAND_SEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST95HF_COMMAND_SEND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
Lloh12:
	adrp	x10, _SEND_RECEIVE_CMD@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SEND_RECEIVE_CMD@GOTPAGEOFF]
	str	w8, [x9]
Lloh14:
	ldr	w8, [x10]
	stp	w8, w25, [x9, #4]
	stp	x24, x19, [x21, #32]
	str	w23, [x21, #28]
	ldr	w8, [x9, #12]
Lloh15:
	adrp	x9, _ISO14443A_RATS_REQ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ISO14443A_RATS_REQ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x22]
Lloh18:
	adrp	x9, _NFC_PROTO_ISO14443@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NFC_PROTO_ISO14443@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x21, #24]
LBB0_9:
	add	x23, x21, #4
	mov	x0, x23
	bl	_down_killable
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_17
LBB0_11:
	add	x0, x21, #16
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
Lloh23:
	adrp	x8, _ASYNC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ASYNC@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	bl	_st95hf_spi_send
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.12:
	ldr	x0, [x21, #8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	mov	x0, x23
	bl	_up
	b	LBB0_14
LBB0_13:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x19
	b	LBB0_16
LBB0_15:
	mov	x0, x20
LBB0_16:
	bl	_kfree_skb
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RESPONSE_BUFFER_SIZE,4,2   ; @MAX_RESPONSE_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ST95HF_COMMAND_SEND,4,2        ; @ST95HF_COMMAND_SEND
	.comm	_SEND_RECEIVE_CMD,4,2           ; @SEND_RECEIVE_CMD
	.comm	_ISO14443A_RATS_REQ,4,2         ; @ISO14443A_RATS_REQ
	.comm	_NFC_PROTO_ISO14443,8,3         ; @NFC_PROTO_ISO14443
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Semaphore is not found up in st95hf_in_send_cmd\n"

	.comm	_ASYNC,4,2                      ; @ASYNC
l_.str.1:                               ; @.str.1
	.asciz	"Error %d trying to perform data_exchange"

	.no_dead_strip	_st95hf_in_send_cmd
.subsections_via_symbols
