	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_nci_i2c_nci_read
_nxp_nci_i2c_nci_read:                  ## @nxp_nci_i2c_nci_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	_NCI_CTRL_HDR_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i2c_master_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	cmpl	(%r12), %ebx
	jne	LBB0_2
## %bb.3:
	movl	-40(%rbp), %edi
	addl	%ebx, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r12), %edx
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_skb_put_data
	movq	(%r14), %rdi
	movl	-40(%rbp), %esi
	callq	_skb_put
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_master_recv
	movl	-40(%rbp), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	(%r14), %rdi
	callq	_kfree_skb
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NCI_CTRL_HDR_SIZE,4,2          ## @NCI_CTRL_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect header length: %u\n"

	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Invalid frame payload length: %u (expected %u)\n"

	.no_dead_strip	_nxp_nci_i2c_nci_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxp_nci_i2c_nci_read
_nxp_nci_i2c_nci_read:                  ; @nxp_nci_i2c_nci_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
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _NCI_CTRL_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NCI_CTRL_HDR_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x20
	bl	_i2c_master_recv
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [sp, #8]
	add	w0, w8, w21
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_alloc_skb
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w2, [x22]
	add	x1, sp, #8
	bl	_skb_put_data
	ldr	x0, [x19]
	ldr	w1, [sp, #8]
	bl	_skb_put
	mov	x1, x0
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_i2c_master_recv
	ldr	w8, [sp, #8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.4:
	mov	w21, #0
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_nfc_err
Lloh7:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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_9:
	mov	x2, x0
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nfc_err
Lloh13:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x19]
	bl	_kfree_skb
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NCI_CTRL_HDR_SIZE,4,2          ; @NCI_CTRL_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect header length: %u\n"

	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Invalid frame payload length: %u (expected %u)\n"

	.no_dead_strip	_nxp_nci_i2c_nci_read
.subsections_via_symbols
