	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mad_send_via                   ## -- Begin function mad_send_via
	.p2align	4, 0x90
_mad_send_via:                          ## @mad_send_via
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -4152(%rbp)                ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_umad_size
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	leaq	-4144(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_memset
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_DEBUG
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_mad_build_pkt
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_ibdebug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	movl	12(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IBWARN
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-4144(%rbp), %rdi
	callq	_umad_get_mad
	movslq	(%r15), %rdx
	addq	%rax, %rdx
	movl	12(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	callq	_xdump
LBB0_3:
	movq	-4152(%rbp), %rdi               ## 8-byte Reload
	movl	8(%rdi), %r14d
	movq	(%rdi), %rax
	movzbl	4(%r15), %ecx
	movl	(%rax,%rcx,4), %r12d
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	8(%r15), %esi
	callq	_mad_get_timeout
	leaq	-4144(%rbp), %rdx
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movl	%r12d, %esi
	movq	%r13, %rcx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_umad_send
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IBWARN
	movl	$-1, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_SIZE,8,3                ## @IB_MAD_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rmpp %p data %p"

	.comm	_ibdebug,8,3                    ## @ibdebug
L_.str.1:                               ## @.str.1
	.asciz	"data offs %d sz %d"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"mad send data\n"

L_.str.3:                               ## @.str.3
	.asciz	"send failed; %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mad_send_via                   ; -- Begin function mad_send_via
	.p2align	2
_mad_send_via:                          ; @mad_send_via
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_umad_size
Lloh5:
	adrp	x24, _IB_MAD_SIZE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IB_MAD_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x2, x8, x0
	add	x0, sp, #8
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_DEBUG
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_mad_build_pkt
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, _ibdebug@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ibdebug@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x20]
	ldr	w8, [x20, #12]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBWARN
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_umad_get_mad
	ldrsw	x8, [x20]
	add	x2, x0, x8
	ldr	w3, [x20, #12]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_xdump
LBB0_3:
	ldr	w21, [x19, #8]
	ldr	x8, [x19]
	ldrb	w9, [x20, #4]
	ldr	w22, [x8, x9, lsl #2]
	ldr	x23, [x24]
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_mad_get_timeout
	mov	x4, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	mov	w5, #0
	bl	_umad_send
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_6
; %bb.4:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IBWARN
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_SIZE,8,3                ; @IB_MAD_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rmpp %p data %p"

	.comm	_ibdebug,8,3                    ; @ibdebug
l_.str.1:                               ; @.str.1
	.asciz	"data offs %d sz %d"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"mad send data\n"

l_.str.3:                               ; @.str.3
	.asciz	"send failed; %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
