	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ems_usb_command_msg
_ems_usb_command_msg:                   ## @ems_usb_command_msg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_CPC_HEADER_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	movq	_CPC_MSG_HEADER_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	addq	(%rsi), %rdx
	callq	_memcpy
	movq	(%rbx), %rdi
	movq	(%r12), %rdx
	xorl	%esi, %esi
	callq	_memset
	movl	8(%rbx), %r15d
	movl	%r15d, %edi
	movl	$2, %esi
	callq	_usb_sndbulkpipe
	movq	(%rbx), %rdx
	movq	(%r13), %rcx
	addq	(%r14), %rcx
	addq	(%r12), %rcx
	leaq	-44(%rbp), %r8
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$1000, %r9d                     ## imm = 0x3E8
	callq	_usb_bulk_msg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPC_HEADER_SIZE,8,3            ## @CPC_HEADER_SIZE
	.comm	_CPC_MSG_HEADER_LEN,8,3         ## @CPC_MSG_HEADER_LEN
	.no_dead_strip	_ems_usb_command_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ems_usb_command_msg
_ems_usb_command_msg:                   ; @ems_usb_command_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _CPC_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CPC_HEADER_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x8, x9, lsl #2
	ldr	x8, [x1]
Lloh2:
	adrp	x23, _CPC_MSG_HEADER_LEN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CPC_MSG_HEADER_LEN@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x2, x9, x8
	bl	_memcpy
	ldr	x0, [x20]
	ldr	x2, [x22]
	mov	w1, #0
	bl	_memset
	ldr	w21, [x20, #8]
	mov	x0, x21
	mov	w1, #2
	bl	_usb_sndbulkpipe
	mov	x1, x0
	ldr	x2, [x20]
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	x10, [x22]
	add	x8, x9, x8
	add	x3, x8, x10
	add	x4, sp, #12
	mov	x0, x21
	mov	w5, #1000
	bl	_usb_bulk_msg
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CPC_HEADER_SIZE,8,3            ; @CPC_HEADER_SIZE
	.comm	_CPC_MSG_HEADER_LEN,8,3         ; @CPC_MSG_HEADER_LEN
	.no_dead_strip	_ems_usb_command_msg
.subsections_via_symbols
