	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_load_session
_st21nfca_hci_load_session:             ## @st21nfca_hci_load_session
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ST21NFCA_DM_GETINFO_PIPE_LIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_NFC_HCI_TERMINAL_HOST_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	_ST21NFCA_DM_GETINFO_PIPE_INFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -96(%rbp)
	movq	%rax, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	_NFC_HCI_HOST_CONTROLLER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ST21NFCA_DEVICE_MGNT_GATE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_ST21NFCA_DEVICE_MGNT_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_nfc_hci_connect_gate
	testl	%eax, %eax
	js	LBB0_20
## %bb.1:
	movl	(%r15), %esi
	movq	_ST21NFCA_DM_GETINFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-64(%rbp), %rcx
	leaq	-104(%rbp), %r9
	movq	%r13, %rdi
	movl	$16, %r8d
	callq	_nfc_hci_send_cmd
	testl	%eax, %eax
	js	LBB0_20
## %bb.2:
	movq	-104(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_18
## %bb.3:
	xorl	%ebx, %ebx
	movq	_st21nfca_gates@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-112(%rbp), %rdi
	callq	_kfree_skb
	movq	_ST21NFCA_DEVICE_MGNT_GATE@GOTPCREL(%rip), %r15
	movq	_ST21NFCA_DM_GETINFO@GOTPCREL(%rip), %r12
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	-104(%rbp), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_18
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -80(%rbp)
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	leaq	-96(%rbp), %rcx
	movl	$24, %r8d
	leaq	-112(%rbp), %r9
	callq	_nfc_hci_send_cmd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-112(%rbp), %rax
	movq	8(%rax), %r15
	movq	(%r15), %rax
	movq	_ST21NFCA_APDU_READER_GATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rsi
	movq	_NFC_HCI_UICC_HOST_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	$3, %r12d
	cmpl	$4, %eax
	jl	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$3, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdi
	movq	(%rdi,%r12,8), %rax
	cmpq	(%r15), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jl	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jge	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rax
	movl	%r12d, %r12d
	movq	(%rax,%r12,8), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r15), %edi
	callq	_ST21NFCA_DM_IS_PIPE_OPEN
	testq	%rax, %rax
	je	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rax
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	-80(%rbp), %rax
	movq	(%r13), %rcx
	movq	(%r14), %rdx
	movq	(%rdx,%r12,8), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	(%rdx,%r12,8), %rax
	movq	8(%r13), %rcx
	movq	-80(%rbp), %rdx
	shlq	$4, %rdx
	movq	%rax, (%rcx,%rdx)
	movq	8(%r15), %rax
	movq	-80(%rbp), %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	jmp	LBB0_5
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_18:
	movq	_NFC_HCI_HOST_CONTROLLER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFC_HCI_LINK_MGMT_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NFC_HCI_LINK_MGMT_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_nfc_hci_connect_gate
	movl	%eax, %ebx
	movq	-104(%rbp), %rdi
	callq	_kfree_skb
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ST21NFCA_DM_GETINFO_PIPE_LIST,8,3 ## @ST21NFCA_DM_GETINFO_PIPE_LIST
	.comm	_NFC_HCI_TERMINAL_HOST_ID,8,3   ## @NFC_HCI_TERMINAL_HOST_ID
	.comm	_ST21NFCA_DM_GETINFO_PIPE_INFO,8,3 ## @ST21NFCA_DM_GETINFO_PIPE_INFO
	.comm	_NFC_HCI_HOST_CONTROLLER_ID,4,2 ## @NFC_HCI_HOST_CONTROLLER_ID
	.comm	_ST21NFCA_DEVICE_MGNT_GATE,4,2  ## @ST21NFCA_DEVICE_MGNT_GATE
	.comm	_ST21NFCA_DEVICE_MGNT_PIPE,4,2  ## @ST21NFCA_DEVICE_MGNT_PIPE
	.comm	_ST21NFCA_DM_GETINFO,4,2        ## @ST21NFCA_DM_GETINFO
	.comm	_ST21NFCA_APDU_READER_GATE,8,3  ## @ST21NFCA_APDU_READER_GATE
	.comm	_NFC_HCI_UICC_HOST_ID,8,3       ## @NFC_HCI_UICC_HOST_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected apdu_reader pipe on host %x\n"

	.comm	_st21nfca_gates,8,3             ## @st21nfca_gates
	.comm	_NFC_HCI_LINK_MGMT_GATE,4,2     ## @NFC_HCI_LINK_MGMT_GATE
	.comm	_NFC_HCI_LINK_MGMT_PIPE,4,2     ## @NFC_HCI_LINK_MGMT_PIPE
	.no_dead_strip	_st21nfca_hci_load_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_load_session
_st21nfca_hci_load_session:             ; @st21nfca_hci_load_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, _ST21NFCA_DM_GETINFO_PIPE_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST21NFCA_DM_GETINFO_PIPE_LIST@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _NFC_HCI_TERMINAL_HOST_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NFC_HCI_TERMINAL_HOST_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x8, x9, [sp, #40]
Lloh9:
	adrp	x8, _ST21NFCA_DM_GETINFO_PIPE_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST21NFCA_DM_GETINFO_PIPE_INFO@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x9, [sp, #16]
	str	xzr, [sp, #32]
Lloh12:
	adrp	x21, _NFC_HCI_HOST_CONTROLLER_ID@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NFC_HCI_HOST_CONTROLLER_ID@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh14:
	adrp	x22, _ST21NFCA_DEVICE_MGNT_GATE@GOTPAGE
Lloh15:
	ldr	x22, [x22, _ST21NFCA_DEVICE_MGNT_GATE@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh16:
	adrp	x8, _ST21NFCA_DEVICE_MGNT_PIPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ST21NFCA_DEVICE_MGNT_PIPE@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	bl	_nfc_hci_connect_gate
	tbnz	w0, #31, LBB0_17
; %bb.1:
	ldr	w1, [x22]
Lloh19:
	adrp	x23, _ST21NFCA_DM_GETINFO@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ST21NFCA_DM_GETINFO@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #40
	add	x5, sp, #8
	mov	x0, x19
	mov	w4, #16
	bl	_nfc_hci_send_cmd
	tbnz	w0, #31, LBB0_17
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.3:
	mov	x24, #0
Lloh21:
	adrp	x25, _ST21NFCA_APDU_READER_GATE@GOTPAGE
Lloh22:
	ldr	x25, [x25, _ST21NFCA_APDU_READER_GATE@GOTPAGEOFF]
Lloh23:
	adrp	x26, _NFC_HCI_UICC_HOST_ID@GOTPAGE
Lloh24:
	ldr	x26, [x26, _NFC_HCI_UICC_HOST_ID@GOTPAGEOFF]
Lloh25:
	adrp	x27, _st21nfca_gates@GOTPAGE
Lloh26:
	ldr	x27, [x27, _st21nfca_gates@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	bl	_kfree_skb
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #8]
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x24, lsl #3]
	str	x8, [sp, #32]
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #16
	mov	x5, sp
	mov	x0, x19
	mov	w4, #24
	bl	_nfc_hci_send_cmd
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp]
	ldr	x28, [x8, #8]
	ldr	x8, [x28]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x28, #8]
	ldr	x8, [x26]
	cmp	x1, x8
	b.eq	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	mov	w20, #3
	cmp	w0, #4
	b.lt	LBB0_13
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x27]
	ldr	x8, [x0, x20, lsl #3]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28, #16]
	bl	_ST21NFCA_DM_IS_PIPE_OPEN
	cbz	x0, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, w20
	ldr	x9, [sp, #32]
	ldr	x10, [x19, #16]
	lsl	x8, x8, #3
	str	x9, [x10, x8]
	ldr	x9, [sp, #32]
	ldr	x10, [x19]
	ldr	x11, [x27]
	ldr	x12, [x11, x8]
	str	x9, [x10, x12, lsl #3]
	ldr	x8, [x11, x8]
	ldr	x9, [x19, #8]
	ldr	x10, [sp, #32]
	lsl	x10, x10, #4
	str	x8, [x9, x10]
	ldr	x8, [x28, #8]
	ldr	x10, [sp, #32]
	add	x9, x9, x10, lsl #4
	str	x8, [x9, #8]
	b	LBB0_5
LBB0_17:
	mov	x20, x0
	b	LBB0_19
LBB0_18:
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _NFC_HCI_LINK_MGMT_GATE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NFC_HCI_LINK_MGMT_GATE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _NFC_HCI_LINK_MGMT_PIPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NFC_HCI_LINK_MGMT_PIPE@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_nfc_hci_connect_gate
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_kfree_skb
LBB0_19:
	ldr	x8, [sp, #56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ST21NFCA_DM_GETINFO_PIPE_LIST,8,3 ; @ST21NFCA_DM_GETINFO_PIPE_LIST
	.comm	_NFC_HCI_TERMINAL_HOST_ID,8,3   ; @NFC_HCI_TERMINAL_HOST_ID
	.comm	_ST21NFCA_DM_GETINFO_PIPE_INFO,8,3 ; @ST21NFCA_DM_GETINFO_PIPE_INFO
	.comm	_NFC_HCI_HOST_CONTROLLER_ID,4,2 ; @NFC_HCI_HOST_CONTROLLER_ID
	.comm	_ST21NFCA_DEVICE_MGNT_GATE,4,2  ; @ST21NFCA_DEVICE_MGNT_GATE
	.comm	_ST21NFCA_DEVICE_MGNT_PIPE,4,2  ; @ST21NFCA_DEVICE_MGNT_PIPE
	.comm	_ST21NFCA_DM_GETINFO,4,2        ; @ST21NFCA_DM_GETINFO
	.comm	_ST21NFCA_APDU_READER_GATE,8,3  ; @ST21NFCA_APDU_READER_GATE
	.comm	_NFC_HCI_UICC_HOST_ID,8,3       ; @NFC_HCI_UICC_HOST_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected apdu_reader pipe on host %x\n"

	.comm	_st21nfca_gates,8,3             ; @st21nfca_gates
	.comm	_NFC_HCI_LINK_MGMT_GATE,4,2     ; @NFC_HCI_LINK_MGMT_GATE
	.comm	_NFC_HCI_LINK_MGMT_PIPE,4,2     ; @NFC_HCI_LINK_MGMT_PIPE
	.no_dead_strip	_st21nfca_hci_load_session
.subsections_via_symbols
