	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_umad_send                      ## -- Begin function umad_send
	.p2align	4, 0x90
_umad_send:                             ## @umad_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r13d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_TRACE
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	%r13d, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r14d, 8(%rbx)
	movq	_umaddebug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_umad_dump
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_umad_size
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leal	(%rax,%r14), %edx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_write
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_umad_size
	addl	%r14d, %eax
	cmpl	%eax, %ebx
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_umad_size
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_DEBUG
	movq	_errno@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jne	LBB0_5
## %bb.4:
	movl	%r15d, (%rcx)
LBB0_5:
	negl	%r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd %d agentid %d umad %p timeout %u"

	.comm	_errno,4,2                      ## @errno
	.comm	_umaddebug,4,2                  ## @umaddebug
L_.str.1:                               ## @.str.1
	.asciz	"write returned %d != sizeof umad %zu + length %d (%m)"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_umad_send                      ; -- Begin function umad_send
	.p2align	2
_umad_send:                             ; @umad_send
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	bl	_TRACE
Lloh2:
	adrp	x25, _errno@GOTPAGE
Lloh3:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	str	wzr, [x25]
	stp	w23, w22, [x20]
	str	w24, [x20, #8]
Lloh4:
	adrp	x8, _umaddebug@GOTPAGE
Lloh5:
	ldr	x8, [x8, _umaddebug@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_umad_dump
LBB0_2:
	bl	_umad_size
	add	w2, w0, w19
	mov	x0, x21
	mov	x1, x20
	bl	_write
	mov	x20, x0
	bl	_umad_size
	add	w8, w0, w19
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	bl	_umad_size
	mov	x2, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_DEBUG
	ldr	w9, [x25]
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w9, LBB0_6
; %bb.5:
	str	w8, [x25]
LBB0_6:
	neg	w0, w8
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd %d agentid %d umad %p timeout %u"

	.comm	_errno,4,2                      ; @errno
	.comm	_umaddebug,4,2                  ; @umaddebug
l_.str.1:                               ; @.str.1
	.asciz	"write returned %d != sizeof umad %zu + length %d (%m)"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
