	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn533_i2c_read
_pn533_i2c_read:                        ## @pn533_i2c_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_PN533_EXT_FRAME_HEADER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PN533_STD_FRAME_MAX_PAYLOAD_LEN@GOTPCREL(%rip), %rcx
	movq	_PN533_STD_FRAME_TAIL_LEN@GOTPCREL(%rip), %rdx
	addl	(%rcx), %eax
	movl	(%rdx), %ecx
	leal	(%rcx,%rax), %ebx
	incl	%ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_alloc_skb
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_i2c_master_recv
	cmpl	%ebx, %eax
	jne	LBB0_3
## %bb.4:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	testb	$1, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_nfc_err
	movq	(%r12), %rdi
	callq	_kfree_skb
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	(%r12), %rdi
	callq	_kfree_skb
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_6:
	movl	$1, %esi
	callq	_skb_pull
	movq	(%r12), %rbx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_skb_trim
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PN533_EXT_FRAME_HEADER_LEN,4,2 ## @PN533_EXT_FRAME_HEADER_LEN
	.comm	_PN533_STD_FRAME_MAX_PAYLOAD_LEN,4,2 ## @PN533_STD_FRAME_MAX_PAYLOAD_LEN
	.comm	_PN533_STD_FRAME_TAIL_LEN,4,2   ## @PN533_STD_FRAME_TAIL_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot read. r=%d len=%d\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.1:                               ## @.str.1
	.asciz	"READY flag not set"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_pn533_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn533_i2c_read
_pn533_i2c_read:                        ; @pn533_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _PN533_EXT_FRAME_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PN533_EXT_FRAME_HEADER_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PN533_STD_FRAME_MAX_PAYLOAD_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PN533_STD_FRAME_MAX_PAYLOAD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PN533_STD_FRAME_TAIL_LEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PN533_STD_FRAME_TAIL_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	w8, w8, w9
	add	w8, w8, w10
	add	w22, w8, #1
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_alloc_skb
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x22
	bl	_skb_put
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_i2c_master_recv
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w22
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldrb	w8, [x8]
	tbnz	w8, #0, LBB0_8
; %bb.3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nfc_err
	ldr	x0, [x19]
	bl	_kfree_skb
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	stp	x0, x22, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nfc_err
	ldr	x0, [x19]
	bl	_kfree_skb
Lloh20:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	mov	w1, #1
	bl	_skb_pull
	ldr	x19, [x19]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x0, [x19]
	blr	x8
	mov	x1, x0
	mov	x0, x19
	bl	_skb_trim
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PN533_EXT_FRAME_HEADER_LEN,4,2 ; @PN533_EXT_FRAME_HEADER_LEN
	.comm	_PN533_STD_FRAME_MAX_PAYLOAD_LEN,4,2 ; @PN533_STD_FRAME_MAX_PAYLOAD_LEN
	.comm	_PN533_STD_FRAME_TAIL_LEN,4,2   ; @PN533_STD_FRAME_TAIL_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read. r=%d len=%d\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.1:                               ; @.str.1
	.asciz	"READY flag not set"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_pn533_i2c_read
.subsections_via_symbols
