	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mad_receive_via                ## -- Begin function mad_receive_via
	.p2align	4, 0x90
_mad_receive_via:                       ## @mad_receive_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rdi, %r13
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_umad_size
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	addq	%rax, %rsi
	movl	$1, %edi
	callq	_umad_alloc
	movq	%rax, %r13
LBB0_2:
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r12), %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mad_get_timeout
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%eax, %ecx
	callq	_umad_recv
	testl	%eax, %eax
	jns	LBB0_6
## %bb.3:
	testq	%r14, %r14
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_umad_free
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DEBUG
	xorl	%r13d, %r13d
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_SIZE,4,2                ## @IB_MAD_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv 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_receive_via                ; -- Begin function mad_receive_via
	.p2align	2
_mad_receive_via:                       ; @mad_receive_via
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _IB_MAD_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_MAD_SIZE@GOTPAGEOFF]
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_umad_size
	ldrsw	x8, [x23]
	add	x1, x0, x8
	mov	w0, #1
	bl	_umad_alloc
	mov	x20, x0
LBB0_2:
	ldr	w8, [x23]
	str	w8, [sp, #12]
	ldr	w23, [x22]
	mov	x0, x22
	mov	x1, x21
	bl	_mad_get_timeout
	mov	x3, x0
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x20
	bl	_umad_recv
	tbz	w0, #31, LBB0_6
; %bb.3:
	cbnz	x19, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_umad_free
LBB0_5:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_SIZE,4,2                ; @IB_MAD_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv failed: %s"

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