	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_api_cmd
_prepare_api_cmd:                       ## @prepare_api_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$128, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movl	%ecx, %r15d
	movl	%esi, %r12d
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %rbx
	movq	_SGE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_API_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_HINIC_API_CMD_DESC_SET
	movl	%eax, %r13d
	movq	_API_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RD_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_API_CMD_DESC_SET
	movl	%eax, %r14d
	orl	%r13d, %r14d
	movq	_NO_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MGMT_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_API_CMD_DESC_SET
	orl	%r14d, %eax
	movl	%eax, (%rbx)
	movq	_DEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_HINIC_API_CMD_DESC_SET
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_SIZE_4BYTES
	movq	_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_API_CMD_DESC_SET
	orl	%r14d, %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_xor_chksum_set
	movq	_XOR_CHKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_API_CMD_DESC_SET
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, (%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_2:
	movq	24(%rdi), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_DATA,4,2                   ## @SGE_DATA
	.comm	_API_TYPE,4,2                   ## @API_TYPE
	.comm	_API_CMD_WRITE,4,2              ## @API_CMD_WRITE
	.comm	_RD_WR,4,2                      ## @RD_WR
	.comm	_NO_BYPASS,4,2                  ## @NO_BYPASS
	.comm	_MGMT_BYPASS,4,2                ## @MGMT_BYPASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown Chain type\n"

	.comm	_DEST,4,2                       ## @DEST
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_XOR_CHKSUM,4,2                 ## @XOR_CHKSUM
	.no_dead_strip	_prepare_api_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_api_cmd
_prepare_api_cmd:                       ; @prepare_api_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0, #8]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x24, [x0, #16]
	ldr	x25, [x0]
	ldr	x21, [x0, #32]
Lloh0:
	adrp	x8, _SGE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _API_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _API_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_DESC_SET
	mov	x23, x0
Lloh6:
	adrp	x8, _API_CMD_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _API_CMD_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RD_WR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RD_WR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_DESC_SET
	orr	w23, w0, w23
Lloh12:
	adrp	x8, _NO_BYPASS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NO_BYPASS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _MGMT_BYPASS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MGMT_BYPASS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_DESC_SET
	orr	w8, w23, w0
	str	w8, [x21]
Lloh18:
	adrp	x8, _DEST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEST@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_HINIC_API_CMD_DESC_SET
	mov	x22, x0
	mov	x0, x19
	bl	_SIZE_4BYTES
Lloh21:
	adrp	x8, _SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_DESC_SET
	orr	w8, w0, w22
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	mov	x0, x21
	bl	_xor_chksum_set
Lloh24:
	adrp	x8, _XOR_CHKSUM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XOR_CHKSUM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_DESC_SET
	ldr	w8, [x21]
	orr	w0, w8, w0
	str	w0, [x21]
	bl	_cpu_to_be64
	str	w0, [x21]
	ldr	w0, [x24, x25, lsl #2]
	mov	x1, x20
	mov	x2, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memcpy
LBB0_2:
	ldr	x8, [x0, #24]
	ldr	x0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_DATA,4,2                   ; @SGE_DATA
	.comm	_API_TYPE,4,2                   ; @API_TYPE
	.comm	_API_CMD_WRITE,4,2              ; @API_CMD_WRITE
	.comm	_RD_WR,4,2                      ; @RD_WR
	.comm	_NO_BYPASS,4,2                  ; @NO_BYPASS
	.comm	_MGMT_BYPASS,4,2                ; @MGMT_BYPASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown Chain type\n"

	.comm	_DEST,4,2                       ; @DEST
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_XOR_CHKSUM,4,2                 ; @XOR_CHKSUM
	.no_dead_strip	_prepare_api_cmd
.subsections_via_symbols
