	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microread_start_poll
_microread_start_poll:                  ## @microread_start_poll
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_NFC_PROTO_ISO14443_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.2:
	movl	$4, -56(%rbp)
	movl	$4, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_NFC_PROTO_ISO14443_B_MASK@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.4:
	orl	$1, %eax
	movl	%eax, -56(%rbp)
LBB0_5:
	movq	_NFC_PROTO_MIFARE_MASK@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_6
## %bb.7:
	movl	$1, -52(%rbp)
	movl	$3, %ecx
	jmp	LBB0_8
LBB0_6:
	movl	$2, %ecx
LBB0_8:
	movq	_NFC_PROTO_JEWEL_MASK@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_10
## %bb.9:
	orl	$2, %eax
	movl	%eax, -56(%rbp)
LBB0_10:
	movq	_NFC_PROTO_FELICA_MASK@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_12
## %bb.11:
	orl	$32, %eax
	movl	%eax, -56(%rbp)
LBB0_12:
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_14
## %bb.13:
	movl	%ecx, -52(%rbp)
LBB0_14:
	movl	%r14d, %ecx
	orl	%ebx, %ecx
	testl	%ecx, %eax
	je	LBB0_18
## %bb.15:
	movl	12(%r15), %edi
	leaq	8(%r15), %r12
	movq	%r12, %rsi
	callq	_nfc_get_local_general_bytes
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	cmpl	$0, (%r12)
	jne	LBB0_18
LBB0_17:
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %ebx
	andl	%eax, %r14d
LBB0_18:
	movq	_MICROREAD_GATE_ID_MREAD_ISO_A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MICROREAD_EVT_MREAD_DISCOVERY_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_hci_send_event
	testl	%eax, %eax
	jne	LBB0_27
## %bb.19:
	movl	$255, -60(%rbp)
	movq	_MICROREAD_GATE_ID_P2P_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MICROREAD_PAR_P2P_TARGET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %r8d
	callq	_nfc_hci_set_param
	testl	%eax, %eax
	je	LBB0_20
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_23
## %bb.21:
	movq	_MICROREAD_GATE_ID_P2P_INITIATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MICROREAD_PAR_P2P_INITIATOR_GI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movq	%r15, %rdi
	callq	_nfc_hci_set_param
	testl	%eax, %eax
	jne	LBB0_27
## %bb.22:
	movl	(%r13), %eax
LBB0_23:
	testl	%r14d, %eax
	je	LBB0_26
## %bb.24:
	movq	_MICROREAD_GATE_ID_P2P_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MICROREAD_PAR_P2P_TARGET_GT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movq	%r15, %rdi
	callq	_nfc_hci_set_param
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	movl	$2, -60(%rbp)
	movq	_MICROREAD_GATE_ID_P2P_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MICROREAD_PAR_P2P_TARGET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %r8d
	callq	_nfc_hci_set_param
	testl	%eax, %eax
	jne	LBB0_27
LBB0_26:
	movl	(%r12), %esi
	movq	_MICROREAD_EVT_MREAD_DISCOVERY_START_SOME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	$2, %r8d
	callq	_nfc_hci_send_event
	jmp	LBB0_27
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NFC_PROTO_ISO14443_MASK,4,2    ## @NFC_PROTO_ISO14443_MASK
	.comm	_NFC_PROTO_ISO14443_B_MASK,4,2  ## @NFC_PROTO_ISO14443_B_MASK
	.comm	_NFC_PROTO_MIFARE_MASK,4,2      ## @NFC_PROTO_MIFARE_MASK
	.comm	_NFC_PROTO_JEWEL_MASK,4,2       ## @NFC_PROTO_JEWEL_MASK
	.comm	_NFC_PROTO_FELICA_MASK,4,2      ## @NFC_PROTO_FELICA_MASK
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_MICROREAD_GATE_ID_MREAD_ISO_A,4,2 ## @MICROREAD_GATE_ID_MREAD_ISO_A
	.comm	_MICROREAD_EVT_MREAD_DISCOVERY_STOP,4,2 ## @MICROREAD_EVT_MREAD_DISCOVERY_STOP
	.comm	_MICROREAD_GATE_ID_P2P_TARGET,4,2 ## @MICROREAD_GATE_ID_P2P_TARGET
	.comm	_MICROREAD_PAR_P2P_TARGET_MODE,4,2 ## @MICROREAD_PAR_P2P_TARGET_MODE
	.comm	_MICROREAD_GATE_ID_P2P_INITIATOR,4,2 ## @MICROREAD_GATE_ID_P2P_INITIATOR
	.comm	_MICROREAD_PAR_P2P_INITIATOR_GI,4,2 ## @MICROREAD_PAR_P2P_INITIATOR_GI
	.comm	_MICROREAD_PAR_P2P_TARGET_GT,4,2 ## @MICROREAD_PAR_P2P_TARGET_GT
	.comm	_MICROREAD_EVT_MREAD_DISCOVERY_START_SOME,4,2 ## @MICROREAD_EVT_MREAD_DISCOVERY_START_SOME
	.no_dead_strip	_microread_start_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microread_start_poll
_microread_start_poll:                  ; @microread_start_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _NFC_PROTO_ISO14443_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFC_PROTO_ISO14443_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #4
	str	w8, [sp, #8]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
Lloh3:
	adrp	x9, _NFC_PROTO_ISO14443_B_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFC_PROTO_ISO14443_B_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_5
; %bb.4:
	orr	w8, w8, #0x1
	str	w8, [sp, #8]
LBB0_5:
Lloh6:
	adrp	x9, _NFC_PROTO_MIFARE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NFC_PROTO_MIFARE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [sp, #12]
	mov	w9, #3
	b	LBB0_8
LBB0_7:
	mov	w9, #2
LBB0_8:
Lloh9:
	adrp	x10, _NFC_PROTO_JEWEL_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NFC_PROTO_JEWEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w21
	b.eq	LBB0_10
; %bb.9:
	orr	w8, w8, #0x2
	str	w8, [sp, #8]
LBB0_10:
Lloh12:
	adrp	x10, _NFC_PROTO_FELICA_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NFC_PROTO_FELICA_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w21
	b.eq	LBB0_12
; %bb.11:
	orr	w8, w8, #0x20
	str	w8, [sp, #8]
LBB0_12:
Lloh15:
	adrp	x23, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh16:
	ldr	x23, [x23, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	str	w9, [sp, #12]
LBB0_14:
	orr	w9, w20, w21
	tst	w8, w9
	b.eq	LBB0_18
; %bb.15:
	ldr	w0, [x19, #12]
	add	x22, x19, #8
	mov	x1, x22
	bl	_nfc_get_local_general_bytes
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w8, [x22]
	cbnz	w8, LBB0_18
LBB0_17:
	ldr	w8, [x23]
	bic	w21, w21, w8
	bic	w20, w20, w8
LBB0_18:
Lloh17:
	adrp	x22, _MICROREAD_GATE_ID_MREAD_ISO_A@GOTPAGE
Lloh18:
	ldr	x22, [x22, _MICROREAD_GATE_ID_MREAD_ISO_A@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh19:
	adrp	x8, _MICROREAD_EVT_MREAD_DISCOVERY_STOP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MICROREAD_EVT_MREAD_DISCOVERY_STOP@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_nfc_hci_send_event
	cbnz	w0, LBB0_20
; %bb.19:
	mov	w8, #255
	str	w8, [sp, #4]
Lloh22:
	adrp	x24, _MICROREAD_GATE_ID_P2P_TARGET@GOTPAGE
Lloh23:
	ldr	x24, [x24, _MICROREAD_GATE_ID_P2P_TARGET@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh24:
	adrp	x25, _MICROREAD_PAR_P2P_TARGET_MODE@GOTPAGE
Lloh25:
	ldr	x25, [x25, _MICROREAD_PAR_P2P_TARGET_MODE@GOTPAGEOFF]
	ldr	w2, [x25]
	add	x3, sp, #4
	mov	x0, x19
	mov	w4, #1
	bl	_nfc_hci_set_param
	cbz	w0, LBB0_21
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_24
; %bb.22:
Lloh26:
	adrp	x8, _MICROREAD_GATE_ID_P2P_INITIATOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MICROREAD_GATE_ID_P2P_INITIATOR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _MICROREAD_PAR_P2P_INITIATOR_GI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MICROREAD_PAR_P2P_INITIATOR_GI@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	x3, [x19]
	ldr	w4, [x19, #8]
	mov	x0, x19
	bl	_nfc_hci_set_param
	cbnz	w0, LBB0_20
; %bb.23:
	ldr	w8, [x23]
LBB0_24:
	tst	w8, w20
	b.eq	LBB0_27
; %bb.25:
	ldr	w1, [x24]
Lloh32:
	adrp	x8, _MICROREAD_PAR_P2P_TARGET_GT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MICROREAD_PAR_P2P_TARGET_GT@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	ldr	x3, [x19]
	ldr	w4, [x19, #8]
	mov	x0, x19
	bl	_nfc_hci_set_param
	cbnz	w0, LBB0_20
; %bb.26:
	mov	w8, #2
	str	w8, [sp, #4]
	ldr	w1, [x24]
	ldr	w2, [x25]
	add	x3, sp, #4
	mov	x0, x19
	mov	w4, #1
	bl	_nfc_hci_set_param
	cbnz	w0, LBB0_20
LBB0_27:
	ldr	w1, [x22]
Lloh35:
	adrp	x8, _MICROREAD_EVT_MREAD_DISCOVERY_START_SOME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MICROREAD_EVT_MREAD_DISCOVERY_START_SOME@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #2
	bl	_nfc_hci_send_event
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_NFC_PROTO_ISO14443_MASK,4,2    ; @NFC_PROTO_ISO14443_MASK
	.comm	_NFC_PROTO_ISO14443_B_MASK,4,2  ; @NFC_PROTO_ISO14443_B_MASK
	.comm	_NFC_PROTO_MIFARE_MASK,4,2      ; @NFC_PROTO_MIFARE_MASK
	.comm	_NFC_PROTO_JEWEL_MASK,4,2       ; @NFC_PROTO_JEWEL_MASK
	.comm	_NFC_PROTO_FELICA_MASK,4,2      ; @NFC_PROTO_FELICA_MASK
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_MICROREAD_GATE_ID_MREAD_ISO_A,4,2 ; @MICROREAD_GATE_ID_MREAD_ISO_A
	.comm	_MICROREAD_EVT_MREAD_DISCOVERY_STOP,4,2 ; @MICROREAD_EVT_MREAD_DISCOVERY_STOP
	.comm	_MICROREAD_GATE_ID_P2P_TARGET,4,2 ; @MICROREAD_GATE_ID_P2P_TARGET
	.comm	_MICROREAD_PAR_P2P_TARGET_MODE,4,2 ; @MICROREAD_PAR_P2P_TARGET_MODE
	.comm	_MICROREAD_GATE_ID_P2P_INITIATOR,4,2 ; @MICROREAD_GATE_ID_P2P_INITIATOR
	.comm	_MICROREAD_PAR_P2P_INITIATOR_GI,4,2 ; @MICROREAD_PAR_P2P_INITIATOR_GI
	.comm	_MICROREAD_PAR_P2P_TARGET_GT,4,2 ; @MICROREAD_PAR_P2P_TARGET_GT
	.comm	_MICROREAD_EVT_MREAD_DISCOVERY_START_SOME,4,2 ; @MICROREAD_EVT_MREAD_DISCOVERY_START_SOME
	.no_dead_strip	_microread_start_poll
.subsections_via_symbols
