	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __post_command2
___post_command2:                       ## @__post_command2
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_IQ_SEND_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	movslq	(%rbx), %rcx
	decq	%rcx
	cmpq	%rcx, %rax
	jge	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_atomic_read
	movslq	(%rbx), %rcx
	addq	$-2, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_4
## %bb.3:
	movq	_IQ_SEND_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	___copy_cmd_into_iq
	movl	(%rbx), %edx
	movl	4(%rbx), %r12d
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_incr_index
	movl	%eax, 4(%rbx)
	incl	12(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_atomic_inc
	jmp	LBB0_5
LBB0_1:
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$4294967295, %r12d              ## imm = 0xFFFFFFFF
LBB0_5:
	shlq	$32, %r15
	orq	%r12, %r15
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IQ_SEND_OK,4,2                 ## @IQ_SEND_OK
	.comm	_IQ_SEND_FAILED,4,2             ## @IQ_SEND_FAILED
	.comm	_IQ_SEND_STOP,4,2               ## @IQ_SEND_STOP
	.no_dead_strip	___post_command2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __post_command2
___post_command2:                       ; @__post_command2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IQ_SEND_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IQ_SEND_OK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x19, x0, #8
	mov	x0, x19
	bl	_atomic_read
	ldrsw	x8, [x20]
	sub	x8, x8, #1
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_atomic_read
	ldrsw	x8, [x20]
	sub	x8, x8, #2
Lloh3:
	adrp	x9, _IQ_SEND_STOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IQ_SEND_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w22, w22, w9, lt
	mov	x0, x20
	mov	x1, x21
	bl	___copy_cmd_into_iq
	ldp	w2, w21, [x20]
	mov	x0, x21
	mov	w1, #1
	bl	_incr_index
	str	w0, [x20, #4]
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	bl	_wmb
	mov	x0, x19
	bl	_atomic_inc
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	w21, #-1
LBB0_3:
	bfi	x21, x22, #32, #32
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IQ_SEND_OK,4,2                 ; @IQ_SEND_OK
	.comm	_IQ_SEND_FAILED,4,2             ; @IQ_SEND_FAILED
	.comm	_IQ_SEND_STOP,4,2               ; @IQ_SEND_STOP
	.no_dead_strip	___post_command2
.subsections_via_symbols
