	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn533_i2c_irq_thread_fn
_pn533_i2c_irq_thread_fn:               ## @pn533_i2c_irq_thread_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %eax
	movq	16(%rsi), %rdi
	cmpl	%eax, (%rdi)
	jne	LBB0_2
## %bb.3:
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pn533_i2c_read
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_6
## %bb.5:
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	xorl	%edx, %edx
	subl	(%rcx), %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_11:
	callq	_pn533_recv_frame
	jmp	LBB0_12
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_12:
	movl	(%r14), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.7:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.9:
	cmpl	$0, 8(%rbx)
	jne	LBB0_12
## %bb.10:
	movl	4(%rbx), %edi
	movq	-24(%rbp), %rsi
	xorl	%edx, %edx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_pn533_i2c_irq_thread_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn533_i2c_irq_thread_fn
_pn533_i2c_irq_thread_fn:               ; @pn533_i2c_irq_thread_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #16]
	ldr	w9, [x8]
	cmp	w9, w0
	b.ne	LBB0_6
; %bb.2:
	add	x0, x8, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19]
	cbnz	w8, LBB0_11
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pn533_i2c_read
Lloh2:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
	ldr	w9, [x8]
	cmn	w0, w9
	b.ne	LBB0_7
; %bb.4:
	str	w0, [x19]
	ldr	w0, [x19, #4]
	ldr	w8, [x8]
	neg	w2, w8
	mov	x1, #0
LBB0_5:
	bl	_pn533_recv_frame
	b	LBB0_11
LBB0_6:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh4:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.8:
Lloh9:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_13
LBB0_11:
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]
	mov	w2, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_pn533_i2c_irq_thread_fn
.subsections_via_symbols
