	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_tm_send_atr_res
_st21nfca_tm_send_atr_res:              ## @st21nfca_tm_send_atr_res
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_nfc_hci_get_clientdata
	movq	%rax, %r15
	movslq	(%r13), %rbx
	leal	1(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	addq	$-12, %rbx
	movl	$36, %esi
	movq	%rax, %rdi
	callq	_skb_put
	movq	8(%r12), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movl	(%r13), %eax
	incl	%eax
	movl	%eax, (%r15)
	movq	_ST21NFCA_NFCIP1_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_ST21NFCA_NFCIP1_ATR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movl	24(%r15), %edi
	movl	8(%r13), %esi
	movl	$6, %edx
	callq	_memcpy
	movq	$0, 4(%r15)
	movq	_ST21NFCA_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movq	_ST21NFCA_GB_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movl	12(%r15), %edi
	movl	4(%r13), %esi
	movq	%rbx, %rdx
	callq	_memcpy
	movl	(%r14), %edi
	movl	12(%r15), %esi
	movq	%rbx, %rdx
	callq	_nfc_set_remote_general_bytes
	testl	%eax, %eax
	js	LBB0_5
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	_ST21NFCA_RF_CARD_F_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ST21NFCA_EVT_SEND_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r12), %rcx
	movl	(%r12), %r8d
	movq	%r14, %rdi
	callq	_nfc_hci_send_event
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree_skb
	movl	%ebx, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ST21NFCA_NFCIP1_RES,4,2        ## @ST21NFCA_NFCIP1_RES
	.comm	_ST21NFCA_NFCIP1_ATR_RES,4,2    ## @ST21NFCA_NFCIP1_ATR_RES
	.comm	_ST21NFCA_DEFAULT_TIMEOUT,4,2   ## @ST21NFCA_DEFAULT_TIMEOUT
	.comm	_ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B,4,2 ## @ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B
	.comm	_ST21NFCA_GB_BIT,4,2            ## @ST21NFCA_GB_BIT
	.comm	_ST21NFCA_RF_CARD_F_GATE,4,2    ## @ST21NFCA_RF_CARD_F_GATE
	.comm	_ST21NFCA_EVT_SEND_DATA,4,2     ## @ST21NFCA_EVT_SEND_DATA
	.no_dead_strip	_st21nfca_tm_send_atr_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_tm_send_atr_res
_st21nfca_tm_send_atr_res:              ; @st21nfca_tm_send_atr_res
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
	bl	_nfc_hci_get_clientdata
	mov	x21, x0
	ldrsw	x23, [x22]
	add	w0, w23, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	sub	x23, x23, #12
	mov	w1, #36
	bl	_skb_put
	ldr	x24, [x20, #8]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x24]
Lloh3:
	adrp	x8, _ST21NFCA_NFCIP1_RES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST21NFCA_NFCIP1_RES@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ST21NFCA_NFCIP1_ATR_RES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ST21NFCA_NFCIP1_ATR_RES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #28]
	ldr	w0, [x24, #24]
	ldr	w1, [x22, #8]
	mov	w2, #6
	bl	_memcpy
	stp	wzr, wzr, [x24, #4]
Lloh9:
	adrp	x8, _ST21NFCA_DEFAULT_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST21NFCA_DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #16]
	cbz	x23, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	bl	_skb_put
Lloh15:
	adrp	x8, _ST21NFCA_GB_BIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ST21NFCA_GB_BIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldp	w0, w9, [x24, #12]
	orr	w8, w9, w8
	str	w8, [x24, #16]
	ldr	w1, [x22, #4]
	mov	x2, x23
	bl	_memcpy
	ldr	w0, [x19]
	ldr	w1, [x24, #12]
	mov	x2, x23
	bl	_nfc_set_remote_general_bytes
	tbnz	w0, #31, LBB0_5
LBB0_3:
	str	xzr, [x21]
Lloh18:
	adrp	x8, _ST21NFCA_RF_CARD_F_GATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ST21NFCA_RF_CARD_F_GATE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ST21NFCA_EVT_SEND_DATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ST21NFCA_EVT_SEND_DATA@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	x3, [x20, #8]
	ldr	w4, [x20]
	mov	x0, x19
	bl	_nfc_hci_send_event
	mov	x19, x0
	mov	x0, x20
	bl	_kfree_skb
	mov	x0, x19
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ST21NFCA_NFCIP1_RES,4,2        ; @ST21NFCA_NFCIP1_RES
	.comm	_ST21NFCA_NFCIP1_ATR_RES,4,2    ; @ST21NFCA_NFCIP1_ATR_RES
	.comm	_ST21NFCA_DEFAULT_TIMEOUT,4,2   ; @ST21NFCA_DEFAULT_TIMEOUT
	.comm	_ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B,4,2 ; @ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B
	.comm	_ST21NFCA_GB_BIT,4,2            ; @ST21NFCA_GB_BIT
	.comm	_ST21NFCA_RF_CARD_F_GATE,4,2    ; @ST21NFCA_RF_CARD_F_GATE
	.comm	_ST21NFCA_EVT_SEND_DATA,4,2     ; @ST21NFCA_EVT_SEND_DATA
	.no_dead_strip	_st21nfca_tm_send_atr_res
.subsections_via_symbols
