	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibmasm_send_os_state           ## -- Begin function ibmasm_send_os_state
	.p2align	4, 0x90
_ibmasm_send_os_state:                  ## @ibmasm_send_os_state
	.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	%esi, %r15d
	movq	%rdi, %r14
	movl	$40, %esi
	callq	_ibmasm_new_command
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	_sp_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movabsq	$4294967299, %rcx               ## imm = 0x100000003
	movq	%rcx, 16(%rax)
	movq	$0, 24(%rax)
	movq	(%rax), %rcx
	movabsq	$12884901892, %rdx              ## imm = 0x300000004
	movq	%rdx, (%rcx)
	movl	$6, 8(%rcx)
	movl	%r15d, 8(%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ibmasm_exec_command
	movq	_IBMASM_CMD_TIMEOUT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ibmasm_wait_for_response
	movq	(%r12), %rax
	movq	_IBMASM_CMD_COMPLETE@GOTPCREL(%rip), %rcx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	subl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	cmovel	%esi, %ebx
	movq	%r12, %rdi
	callq	_command_put
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sp_write,4,2                   ## @sp_write
	.comm	_IBMASM_CMD_TIMEOUT_NORMAL,4,2  ## @IBMASM_CMD_TIMEOUT_NORMAL
	.comm	_IBMASM_CMD_COMPLETE,8,3        ## @IBMASM_CMD_COMPLETE
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ibmasm_send_os_state
lCPI0_0:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
lCPI0_1:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ibmasm_send_os_state
	.p2align	2
_ibmasm_send_os_state:                  ; @ibmasm_send_os_state
	.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
	mov	w1, #40
	bl	_ibmasm_new_command
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _sp_write@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sp_write@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #32]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #16]
	str	xzr, [x8, #24]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x10, lCPI0_1@PAGEOFF]
	str	d0, [x9]
	mov	w10, #6
	str	w10, [x9, #8]
	str	w21, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_ibmasm_exec_command
Lloh7:
	adrp	x8, _IBMASM_CMD_TIMEOUT_NORMAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IBMASM_CMD_TIMEOUT_NORMAL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ibmasm_wait_for_response
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _IBMASM_CMD_COMPLETE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IBMASM_CMD_COMPLETE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _ENODEV@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w20, wzr, w10, eq
	mov	x0, x19
	bl	_command_put
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sp_write,4,2                   ; @sp_write
	.comm	_IBMASM_CMD_TIMEOUT_NORMAL,4,2  ; @IBMASM_CMD_TIMEOUT_NORMAL
	.comm	_IBMASM_CMD_COMPLETE,8,3        ; @IBMASM_CMD_COMPLETE
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
