	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcmrvl_i2c_read
_nfcmrvl_i2c_read:                      ## @nfcmrvl_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
	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	(%rdi), %rdi
	movq	_NCI_CTRL_HDR_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rsi
	callq	_i2c_master_recv
	cmpl	(%rbx), %eax
	jne	LBB0_1
## %bb.3:
	movl	-40(%rbp), %esi
	movq	_NCI_MAX_PAYLOAD_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jle	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nfc_err
LBB0_10:
	movq	_EBADMSG@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r15), %rcx
	movl	(%rcx), %edi
	addl	%eax, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nci_skb_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_skb_put_data
	movl	-40(%rbp), %esi
	xorl	%ebx, %ebx
	testl	%esi, %esi
	je	LBB0_12
## %bb.8:
	movq	(%r15), %r12
	movq	(%r14), %rdi
	callq	_skb_put
	movl	-40(%rbp), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_i2c_master_recv
	movl	-40(%rbp), %ecx
	cmpl	%ecx, %eax
	je	LBB0_12
## %bb.9:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	(%r14), %rdi
	callq	_kfree_skb
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_NCI_CTRL_HDR_SIZE,4,2          ## @NCI_CTRL_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot read NCI header\n"

	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_NCI_MAX_PAYLOAD_SIZE,4,2       ## @NCI_MAX_PAYLOAD_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"invalid packet payload size\n"

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

	.no_dead_strip	_nfcmrvl_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcmrvl_i2c_read
_nfcmrvl_i2c_read:                      ; @nfcmrvl_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x21, _NCI_CTRL_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NCI_CTRL_HDR_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #24
	bl	_i2c_master_recv
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [sp, #24]
Lloh2:
	adrp	x8, _NCI_MAX_PAYLOAD_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NCI_MAX_PAYLOAD_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_8
; %bb.2:
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_nfc_err
LBB0_5:
Lloh9:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	add	w1, w9, w0
Lloh11:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_nci_skb_alloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w2, [x21]
	add	x1, sp, #24
	bl	_skb_put_data
	ldr	w1, [sp, #24]
	cbz	w1, LBB0_11
; %bb.10:
	ldr	x21, [x20]
	ldr	x0, [x19]
	bl	_skb_put
	mov	x1, x0
	ldr	w2, [sp, #24]
	mov	x0, x21
	bl	_i2c_master_recv
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w9, [sp, #24]
	cmp	w0, w9
	b.ne	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_7
LBB0_12:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
	ldr	x8, [x20]
	stp	x0, x9, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_nfc_err
	ldr	x0, [x19]
	bl	_kfree_skb
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NCI_CTRL_HDR_SIZE,4,2          ; @NCI_CTRL_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read NCI header\n"

	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_NCI_MAX_PAYLOAD_SIZE,4,2       ; @NCI_MAX_PAYLOAD_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"invalid packet payload size\n"

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

	.no_dead_strip	_nfcmrvl_i2c_read
.subsections_via_symbols
