	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia_pp_transferCmd
_cpia_pp_transferCmd:                   ## @cpia_pp_transferCmd
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%rdx, %r14
	movq	%rdi, %r13
	movl	28(%rbx), %r15d
	shll	$8, %r15d
	orl	24(%rbx), %r15d
	movq	_PACKET_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_WritePacket
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movl	(%rbx), %esi
	movq	_DATA_IN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_14
## %bb.9:
	testq	%r14, %r14
	je	LBB0_10
## %bb.11:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_ReadPacket
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_DBG
	jmp	LBB0_21
LBB0_14:
	movq	_DATA_OUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_19
## %bb.15:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.16:
	testq	%r14, %r14
	je	LBB0_10
## %bb.17:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_WritePacket
	testl	%eax, %eax
	jns	LBB0_21
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	%ebx, %r12d
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBG
	jmp	LBB0_20
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBG
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal driver error: cam is NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Internal driver error: command is NULL\n"

	.comm	_PACKET_LENGTH,4,2              ## @PACKET_LENGTH
L_.str.2:                               ## @.str.2
	.asciz	"Error writing command\n"

	.comm	_DATA_IN,4,2                    ## @DATA_IN
L_.str.3:                               ## @.str.3
	.asciz	"Internal driver error: data is NULL\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error reading command result\n"

	.comm	_DATA_OUT,4,2                   ## @DATA_OUT
L_.str.5:                               ## @.str.5
	.asciz	"Error writing command data\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unexpected first byte of command: %x\n"

	.no_dead_strip	_cpia_pp_transferCmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia_pp_transferCmd
_cpia_pp_transferCmd:                   ; @cpia_pp_transferCmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x19, x2
	mov	x21, x0
	ldp	w24, w22, [x23, #24]
Lloh3:
	adrp	x8, _PACKET_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_WritePacket
	tbnz	w0, #31, LBB0_9
; %bb.3:
	orr	w22, w24, w22, lsl #8
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _DATA_IN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DATA_IN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.4:
	cbz	x19, LBB0_16
; %bb.5:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #8
	bl	_ReadPacket
	tbnz	w0, #31, LBB0_20
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_memcpy
	mov	w20, #0
	b	LBB0_18
LBB0_7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_9:
	mov	x20, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	b	LBB0_18
LBB0_10:
Lloh15:
	adrp	x9, _DATA_OUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DATA_OUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.11:
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.12:
	cbz	x19, LBB0_16
; %bb.13:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_WritePacket
	tbnz	w0, #31, LBB0_21
LBB0_14:
	mov	w20, #0
	b	LBB0_18
LBB0_15:
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	bl	_DBG
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_18:
	ldr	x8, [sp, #40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.19:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	mov	x20, x0
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG
	b	LBB0_18
LBB0_21:
	mov	x20, x0
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBG
	b	LBB0_18
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal driver error: cam is NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Internal driver error: command is NULL\n"

	.comm	_PACKET_LENGTH,4,2              ; @PACKET_LENGTH
l_.str.2:                               ; @.str.2
	.asciz	"Error writing command\n"

	.comm	_DATA_IN,4,2                    ; @DATA_IN
l_.str.3:                               ; @.str.3
	.asciz	"Internal driver error: data is NULL\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error reading command result\n"

	.comm	_DATA_OUT,4,2                   ; @DATA_OUT
l_.str.5:                               ; @.str.5
	.asciz	"Error writing command data\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unexpected first byte of command: %x\n"

	.no_dead_strip	_cpia_pp_transferCmd
.subsections_via_symbols
