	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_iboe_set_mgid
_cma_iboe_set_mgid:                     ## @cma_iboe_set_mgid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_cma_any_addr
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_1:
	movq	(%r14), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_2:
	movq	_IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r15d, (%rax)
	movl	$255, %edx
	cmovel	%ecx, %edx
	movq	(%rbx), %rsi
	movl	%edx, (%rsi)
	cmpl	%r15d, (%rax)
	movl	$14, %eax
	cmovel	%ecx, %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx), %rax
	movl	$0, 8(%rax)
	movq	(%rbx), %rax
	movl	$0, 12(%rax)
	movq	(%rbx), %rax
	movl	$0, 16(%rax)
	movq	(%rbx), %rax
	movl	$0, 20(%rax)
	movq	(%rbx), %rax
	movl	$0, 24(%rax)
	movq	(%rbx), %rax
	movl	$0, 28(%rax)
	movq	(%rbx), %rax
	movl	$0, 32(%rax)
	movq	(%rbx), %rax
	movl	$0, 36(%rax)
	movq	(%rbx), %rax
	movl	$255, 40(%rax)
	movq	(%rbx), %rax
	movl	$255, 44(%rax)
	movl	(%r14), %eax
	movq	(%rbx), %rcx
	movl	%eax, 48(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,4,2 ## @IB_GID_TYPE_ROCE_UDP_ENCAP
	.no_dead_strip	_cma_iboe_set_mgid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_iboe_set_mgid
_cma_iboe_set_mgid:                     ; @cma_iboe_set_mgid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_cma_any_addr
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memset
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
LBB0_4:
Lloh3:
	adrp	x8, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGEOFF]
	ldr	w9, [x8]
	mov	w10, #255
	cmp	w9, w21
	csel	w9, wzr, w10, eq
	ldr	x11, [x19]
	str	w9, [x11]
	ldr	w8, [x8]
	mov	w9, #14
	cmp	w8, w21
	csel	w8, wzr, w9, eq
	ldr	x9, [x19]
	str	w8, [x9, #4]
	ldr	x8, [x19]
	str	wzr, [x8, #8]
	ldr	x8, [x19]
	str	wzr, [x8, #12]
	ldr	x8, [x19]
	str	wzr, [x8, #16]
	ldr	x8, [x19]
	str	wzr, [x8, #20]
	ldr	x8, [x19]
	str	wzr, [x8, #24]
	ldr	x8, [x19]
	str	wzr, [x8, #28]
	ldr	x8, [x19]
	str	wzr, [x8, #32]
	ldr	x8, [x19]
	str	wzr, [x8, #36]
	ldr	x8, [x19]
	str	w10, [x8, #40]
	ldr	x8, [x19]
	str	w10, [x8, #44]
	ldr	w8, [x20]
	ldr	x9, [x19]
	str	w8, [x9, #48]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,4,2 ; @IB_GID_TYPE_ROCE_UDP_ENCAP
	.no_dead_strip	_cma_iboe_set_mgid
.subsections_via_symbols
