	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibm_send_command
_ibm_send_command:                      ## @ibm_send_command
	.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
	movl	%edx, %r14d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	xorl	%edi, %edi
	testl	%ecx, %ecx
	setne	%dil
	movq	_debNormal@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_IBM_MP2_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	(%rdi,%rsi,2), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$2, %r8d
	callq	_debiwrite
	movl	(%r15), %esi
	movq	_IBM_MP2_CMD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	movl	$2, %r8d
	callq	_debiwrite
	movl	(%r15), %esi
	movq	_IBM_MP2_CMD_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	movl	$2, %r8d
	callq	_debiwrite
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	_debiread
	testb	$1, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	incl	%ebx
	cmpl	$100, %ebx
	jne	LBB0_1
## %bb.3:
	movl	$100, %ebx
LBB0_4:
	xorl	%eax, %eax
	cmpl	$100, %ebx
	sete	%al
	negl	%eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debNormal,4,2                  ## @debNormal
	.comm	_IBM_MP2_COMMAND,4,2            ## @IBM_MP2_COMMAND
	.comm	_IBM_MP2_CMD_DATA,4,2           ## @IBM_MP2_CMD_DATA
	.comm	_IBM_MP2_CMD_STAT,4,2           ## @IBM_MP2_CMD_STAT
	.no_dead_strip	_ibm_send_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibm_send_command
_ibm_send_command:                      ; @ibm_send_command
	.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	x20, x2
	mov	x19, x0
	cmp	w3, #0
Lloh0:
	adrp	x21, _debNormal@GOTPAGE
Lloh1:
	ldr	x21, [x21, _debNormal@GOTPAGEOFF]
	cset	w3, ne
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _IBM_MP2_COMMAND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IBM_MP2_COMMAND@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	bfi	w3, w1, #1, #31
	mov	x1, x8
	mov	w4, #2
	bl	_debiwrite
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _IBM_MP2_CMD_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IBM_MP2_CMD_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	mov	w4, #2
	bl	_debiwrite
	ldr	w1, [x21]
Lloh8:
	adrp	x20, _IBM_MP2_CMD_STAT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _IBM_MP2_CMD_STAT@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #2
	bl	_debiwrite
	mov	w22, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #2
	bl	_debiread
	tbz	w0, #0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_schedule
	add	w22, w22, #1
	cmp	w22, #100
	b.ne	LBB0_1
LBB0_3:
	cmp	w22, #100
	csetm	w0, eq
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_debNormal,4,2                  ; @debNormal
	.comm	_IBM_MP2_COMMAND,4,2            ; @IBM_MP2_COMMAND
	.comm	_IBM_MP2_CMD_DATA,4,2           ; @IBM_MP2_CMD_DATA
	.comm	_IBM_MP2_CMD_STAT,4,2           ; @IBM_MP2_CMD_STAT
	.no_dead_strip	_ibm_send_command
.subsections_via_symbols
