	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_i2c_fw_check_cmd
_pn544_hci_i2c_fw_check_cmd:            ## @pn544_hci_i2c_fw_check_cmd
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_crc_ccitt
	movl	%eax, %r15d
	movq	_PN544_FW_CMD_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rsi
	movl	$16, %edi
	callq	_put_unaligned_be16
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movzbl	%bh, %eax
	movl	%eax, 4(%rcx)
	movzbl	%bl, %eax
	movl	%eax, 8(%rcx)
	leaq	-44(%rbp), %rsi
	movl	%r12d, %edi
	callq	_put_unaligned_be16
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_put_unaligned_be16
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_i2c_master_send
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$24, %ecx
	je	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	js	LBB0_2
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movl	%ecx, %eax
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PN544_FW_CMD_CHECK,4,2         ## @PN544_FW_CMD_CHECK
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pn544_hci_i2c_fw_check_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pn544_hci_i2c_fw_check_cmd
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pn544_hci_i2c_fw_check_cmd:            ; @pn544_hci_i2c_fw_check_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	w0, #65535
	mov	x1, x2
	mov	x2, x3
	bl	_crc_ccitt
	mov	x22, x0
Lloh0:
	adrp	x8, _PN544_FW_CMD_CHECK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PN544_FW_CMD_CHECK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	add	x23, sp, #8
	add	x1, x23, #16
	mov	w0, #16
	bl	_put_unaligned_be16
	dup.2s	v0, w20
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	ldr	x8, [sp, #8]
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	str	d0, [x8]
	and	w9, w20, #0xff
	str	w9, [x8, #8]
	add	x1, x23, #12
	mov	x0, x19
	bl	_put_unaligned_be16
	add	x1, x23, #8
	mov	x0, x22
	bl	_put_unaligned_be16
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #24
	bl	_i2c_master_send
	cmp	w0, #24
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PN544_FW_CMD_CHECK,4,2         ; @PN544_FW_CMD_CHECK
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pn544_hci_i2c_fw_check_cmd
.subsections_via_symbols
