	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st21nfca_im_send_atr_req       ## -- Begin function st21nfca_im_send_atr_req
	.p2align	4, 0x90
_st21nfca_im_send_atr_req:              ## @st21nfca_im_send_atr_req
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_nfc_hci_get_clientdata
	movq	%rax, %r14
	movq	_ST21NFCA_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ST21NFCA_ATR_REQ_MIN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	movq	_ST21NFCA_ATR_REQ_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_PROTOCOL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	leal	41(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_skb_reserve
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_skb_put
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_ST21NFCA_NFCIP1_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	_ST21NFCA_NFCIP1_ATR_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	24(%r13), %rdi
	movq	_NFC_NFCID3_MAXSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	24(%r13), %rdi
	testq	%rdx, %rdx
	jle	LBB0_7
## %bb.6:
	movl	8(%rax), %esi
	callq	_memcpy
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_7:
	movl	(%rbx), %esi
	callq	_get_random_bytes
LBB0_8:
	movq	$0, (%r13)
	movl	$0, 8(%r13)
	movq	_ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	testq	%r12, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_ST21NFCA_GB_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%r13)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_skb_put_data
LBB0_10:
	movq	(%r15), %rax
	addq	$40, %rax
	movq	%rax, 16(%r13)
	movq	%r15, %r12
	movq	%rbx, %r15
	movl	4(%r14), %ebx
	orl	$16, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_skb_push
	movl	%ebx, (%rax)
	movq	_ST21NFCA_CB_TYPE_READER_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	%r14, 24(%r14)
	movq	_st21nfca_im_recv_atr_res_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	8(%r13), %eax
	movl	%eax, 8(%r14)
	movl	4(%r13), %eax
	movl	%eax, 12(%r14)
	movl	12(%r13), %edi
	callq	_ST21NFCA_PP2LRI
	movl	%eax, 16(%r14)
	movq	_ST21NFCA_RF_READER_F_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ST21NFCA_WR_XCHG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r15), %rcx
	movl	(%r15), %r8d
	movl	(%r14), %r9d
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	callq	_nfc_hci_send_cmd_async
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST21NFCA_DEFAULT_TIMEOUT,4,2   ## @ST21NFCA_DEFAULT_TIMEOUT
	.comm	_ST21NFCA_ATR_REQ_MIN_SIZE,8,3  ## @ST21NFCA_ATR_REQ_MIN_SIZE
	.comm	_ST21NFCA_ATR_REQ_MAX_SIZE,8,3  ## @ST21NFCA_ATR_REQ_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"14.6.1.1"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ST21NFCA_NFCIP1_REQ,4,2        ## @ST21NFCA_NFCIP1_REQ
	.comm	_ST21NFCA_NFCIP1_ATR_REQ,4,2    ## @ST21NFCA_NFCIP1_ATR_REQ
	.comm	_NFC_NFCID3_MAXSIZE,4,2         ## @NFC_NFCID3_MAXSIZE
	.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_CB_TYPE_READER_F,4,2  ## @ST21NFCA_CB_TYPE_READER_F
	.comm	_st21nfca_im_recv_atr_res_cb,4,2 ## @st21nfca_im_recv_atr_res_cb
	.comm	_ST21NFCA_RF_READER_F_GATE,4,2  ## @ST21NFCA_RF_READER_F_GATE
	.comm	_ST21NFCA_WR_XCHG_DATA,4,2      ## @ST21NFCA_WR_XCHG_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st21nfca_im_send_atr_req       ; -- Begin function st21nfca_im_send_atr_req
	.p2align	2
_st21nfca_im_send_atr_req:              ; @st21nfca_im_send_atr_req
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_nfc_hci_get_clientdata
Lloh0:
	adrp	x8, _ST21NFCA_DEFAULT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST21NFCA_DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
Lloh3:
	adrp	x8, _ST21NFCA_ATR_REQ_MIN_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST21NFCA_ATR_REQ_MIN_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ST21NFCA_ATR_REQ_MAX_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ST21NFCA_ATR_REQ_MAX_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x22
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PROTOCOL_ERR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	add	w0, w22, #41
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	w1, #1
	bl	_skb_reserve
	mov	x0, x21
	mov	w1, #40
	bl	_skb_put
	ldr	x24, [x21, #8]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh16:
	adrp	x8, _ST21NFCA_NFCIP1_REQ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ST21NFCA_NFCIP1_REQ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ST21NFCA_NFCIP1_ATR_REQ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ST21NFCA_NFCIP1_ATR_REQ@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #32]
	ldr	x0, [x24, #24]
Lloh22:
	adrp	x25, _NFC_NFCID3_MAXSIZE@GOTPAGE
Lloh23:
	ldr	x25, [x25, _NFC_NFCID3_MAXSIZE@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x2, [x8]
	ldr	x0, [x24, #24]
	cmp	x2, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	w1, [x8, #8]
	bl	_memcpy
	b	LBB0_8
LBB0_5:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_7:
	ldr	w1, [x25]
	bl	_get_random_bytes
LBB0_8:
	str	xzr, [x24]
Lloh26:
	adrp	x8, _ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ST21NFCA_LR_BITS_PAYLOAD_SIZE_254B@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stp	wzr, w8, [x24, #8]
	cbz	x22, LBB0_10
; %bb.9:
Lloh29:
	adrp	x9, _ST21NFCA_GB_BIT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ST21NFCA_GB_BIT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x24, #12]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_skb_put_data
LBB0_10:
	ldr	x8, [x20]
	add	x8, x8, #40
	str	x8, [x24, #16]
	ldr	w8, [x19, #4]
	orr	w22, w8, #0x10
	mov	x0, x21
	mov	w1, #1
	bl	_skb_push
Lloh32:
	adrp	x8, _ST21NFCA_CB_TYPE_READER_F@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ST21NFCA_CB_TYPE_READER_F@GOTPAGEOFF]
	str	w22, [x0]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	x19, [x19, #24]
Lloh35:
	adrp	x8, _st21nfca_im_recv_atr_res_cb@GOTPAGE
Lloh36:
	ldr	x8, [x8, _st21nfca_im_recv_atr_res_cb@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x19]
	ldur	d0, [x24, #4]
	rev64.2s	v0, v0
	str	d0, [x19, #8]
	ldr	w0, [x24, #12]
	bl	_ST21NFCA_PP2LRI
	str	w0, [x19, #16]
Lloh38:
	adrp	x8, _ST21NFCA_RF_READER_F_GATE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ST21NFCA_RF_READER_F_GATE@GOTPAGEOFF]
Lloh40:
	adrp	x9, _ST21NFCA_WR_XCHG_DATA@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ST21NFCA_WR_XCHG_DATA@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	ldr	w2, [x9]
	ldr	x3, [x21, #8]
	ldr	w4, [x21]
	ldr	w5, [x19]
	mov	x0, x20
	mov	x6, x19
	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
	b	_nfc_hci_send_cmd_async
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ST21NFCA_DEFAULT_TIMEOUT,4,2   ; @ST21NFCA_DEFAULT_TIMEOUT
	.comm	_ST21NFCA_ATR_REQ_MIN_SIZE,8,3  ; @ST21NFCA_ATR_REQ_MIN_SIZE
	.comm	_ST21NFCA_ATR_REQ_MAX_SIZE,8,3  ; @ST21NFCA_ATR_REQ_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"14.6.1.1"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ST21NFCA_NFCIP1_REQ,4,2        ; @ST21NFCA_NFCIP1_REQ
	.comm	_ST21NFCA_NFCIP1_ATR_REQ,4,2    ; @ST21NFCA_NFCIP1_ATR_REQ
	.comm	_NFC_NFCID3_MAXSIZE,4,2         ; @NFC_NFCID3_MAXSIZE
	.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_CB_TYPE_READER_F,4,2  ; @ST21NFCA_CB_TYPE_READER_F
	.comm	_st21nfca_im_recv_atr_res_cb,4,2 ; @st21nfca_im_recv_atr_res_cb
	.comm	_ST21NFCA_RF_READER_F_GATE,4,2  ; @ST21NFCA_RF_READER_F_GATE
	.comm	_ST21NFCA_WR_XCHG_DATA,4,2      ; @ST21NFCA_WR_XCHG_DATA
.subsections_via_symbols
