	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_write                     ## -- Begin function hpsb_write
	.p2align	4, 0x90
_hpsb_write:                            ## @hpsb_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%r9, %r9
	je	LBB0_1
## %bb.3:
	movl	%edx, %ebx
	movl	%ecx, %edx
	movq	%r8, %rcx
	movq	%r9, %r8
	callq	_hpsb_make_writepacket
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	%ebx, (%rax)
	movq	%rax, %rdi
	callq	_hpsb_send_packet_and_wait
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_hpsb_packet_success
LBB0_7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_hpsb_free_tlabel
	movq	%r14, %rdi
	callq	_hpsb_free_packet
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_write                     ; -- Begin function hpsb_write
	.p2align	2
_hpsb_write:                            ; @hpsb_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x5, LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	bl	_hpsb_make_writepacket
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	str	w20, [x0]
	bl	_hpsb_send_packet_and_wait
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_hpsb_packet_success
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_hpsb_free_tlabel
	mov	x0, x19
	bl	_hpsb_free_packet
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
