	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_one_recv
_process_one_recv:                      ## @process_one_recv
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IB_MAD_SIZE@GOTPCREL(%rip), %r14
	movslq	(%r14), %rbx
	leaq	16(,%rbx,4), %rax
	addq	$4, %rbx
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%eax, %eax
	callq	_umad_size
	addl	(%r14), %eax
	movl	%eax, -56(%rbp)
	shll	$2, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	4(%r12), %edi
	leaq	-56(%rbp), %rdx
	movl	$-1, %r13d
	movq	%r15, %rsi
	movl	$-1, %ecx
	callq	_umad_recv
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_umad_get_mad
	movq	%rax, %rbx
	movq	_IB_MAD_TRID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field64
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_cl_qmap_remove
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_cl_qmap_end
	cmpq	%r14, %rax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_process_smp_queue
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_umad_status
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	addq	$32, %rdi
	callq	_portid2str
	movl	%eax, %r15d
	movq	16(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%r15d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_IBND_ERROR
	movq	16(%r14), %rax
	movq	_IB_ATTR_MLNX_EXT_PORT_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_14
## %bb.7:
	movl	8(%r14), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mlnx_ext_port_info_err
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IBND_ERROR
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_IBND_ERROR
	movl	$-1, %r13d
	jmp	LBB0_15
LBB0_9:
	movq	_IB_DRSMP_STATUS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mad_get_field
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	addq	$32, %rdi
	callq	_portid2str
	movq	16(%r14), %rdx
	movl	24(%r14), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_IBND_ERROR
	movq	16(%r14), %rax
	movq	_IB_ATTR_MLNX_EXT_PORT_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movl	8(%r14), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_mlnx_ext_port_info_err
	jmp	LBB0_13
LBB0_12:
	movl	8(%r14), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*(%r14)
LBB0_13:
	movl	%eax, %r13d
LBB0_14:
	movq	%r14, %rdi
	callq	_free
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MAD_SIZE,4,2                ## @IB_MAD_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"umad_recv failed: %d\n"

	.comm	_IB_MAD_TRID_F,4,2              ## @IB_MAD_TRID_F
L_.str.1:                               ## @.str.1
	.asciz	"Failed to find matching smp for trid (%x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"umad (%s Attr 0x%x:%u) bad status %d; %s\n"

	.comm	_IB_ATTR_MLNX_EXT_PORT_INFO,8,3 ## @IB_ATTR_MLNX_EXT_PORT_INFO
	.comm	_IB_DRSMP_STATUS_F,4,2          ## @IB_DRSMP_STATUS_F
L_.str.3:                               ## @.str.3
	.asciz	"mad (%s Attr 0x%x:%u) bad status 0x%x\n"

	.no_dead_strip	_process_one_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_one_recv
_process_one_recv:                      ; @process_one_recv
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x20, _IB_MAD_SIZE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IB_MAD_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	x21, x8, #4
	lsl	x8, x21, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	bl	_umad_size
	ldr	w8, [x20]
	add	w8, w8, w0
	stur	w8, [x29, #-76]
	lsl	w2, w21, #2
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #4]
	sub	x2, x29, #76
	mov	x1, x22
	mov	w3, #-1
	bl	_umad_recv
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_umad_get_mad
	mov	x21, x0
Lloh7:
	adrp	x8, _IB_MAD_TRID_F@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IB_MAD_TRID_F@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field64
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_cl_qmap_remove
	mov	x20, x0
	mov	x0, x19
	bl	_cl_qmap_end
	cmp	x0, x20
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_process_smp_queue
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.3:
	mov	x0, x22
	bl	_umad_status
	cbz	w0, LBB0_8
; %bb.4:
	mov	x22, x0
	add	x0, x20, #32
	bl	_portid2str
	mov	x23, x0
	ldr	x24, [x20, #16]
	ldr	w25, [x20, #24]
	mov	x0, x22
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sub	sp, sp, #32
	stp	x22, x0, [sp, #16]
	stp	x24, x25, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	b	LBB0_10
LBB0_5:
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
LBB0_7:
	bl	_IBND_ERROR
	mov	w23, #-1
	b	LBB0_16
LBB0_8:
Lloh16:
	adrp	x8, _IB_DRSMP_STATUS_F@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_DRSMP_STATUS_F@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_mad_get_field
	cbz	w0, LBB0_13
; %bb.9:
	mov	x22, x0
	add	x0, x20, #32
	bl	_portid2str
	mov	x1, x0
	ldr	x8, [x20, #16]
	ldr	w9, [x20, #24]
	sub	sp, sp, #32
	stp	x9, x22, [sp, #8]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_IBND_ERROR
	add	sp, sp, #32
	ldr	x8, [x20, #16]
Lloh21:
	adrp	x9, _IB_ATTR_MLNX_EXT_PORT_INFO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_ATTR_MLNX_EXT_PORT_INFO@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlnx_ext_port_info_err
	b	LBB0_14
LBB0_12:
	mov	w23, #0
	b	LBB0_15
LBB0_13:
	ldr	x8, [x20]
	ldr	w3, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
LBB0_14:
	mov	x23, x0
LBB0_15:
	mov	x0, x20
	bl	_free
LBB0_16:
	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_18
; %bb.17:
	mov	x0, x23
	sub	sp, x29, #64
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MAD_SIZE,4,2                ; @IB_MAD_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"umad_recv failed: %d\n"

	.comm	_IB_MAD_TRID_F,4,2              ; @IB_MAD_TRID_F
l_.str.1:                               ; @.str.1
	.asciz	"Failed to find matching smp for trid (%x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"umad (%s Attr 0x%x:%u) bad status %d; %s\n"

	.comm	_IB_ATTR_MLNX_EXT_PORT_INFO,8,3 ; @IB_ATTR_MLNX_EXT_PORT_INFO
	.comm	_IB_DRSMP_STATUS_F,4,2          ; @IB_DRSMP_STATUS_F
l_.str.3:                               ; @.str.3
	.asciz	"mad (%s Attr 0x%x:%u) bad status 0x%x\n"

	.no_dead_strip	_process_one_recv
.subsections_via_symbols
