	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_gids_from_rdma_hdr
_get_gids_from_rdma_hdr:                ## @get_gids_from_rdma_hdr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	_RDMA_NETWORK_IPV4@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	4(%r15), %rsi
	leaq	-40(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	-32(%rbp), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-40(%rbp), %edi
	movl	-32(%rbp), %r15d
	movq	%rbx, %rsi
	callq	_ipv6_addr_set_v4mapped
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_ipv6_addr_set_v4mapped
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_RDMA_NETWORK_IPV6@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_RDMA_NETWORK_IB@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r15), %eax
	movl	%eax, (%r14)
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_NETWORK_IPV4,4,2          ## @RDMA_NETWORK_IPV4
	.comm	_RDMA_NETWORK_IPV6,4,2          ## @RDMA_NETWORK_IPV6
	.comm	_RDMA_NETWORK_IB,4,2            ## @RDMA_NETWORK_IB
	.no_dead_strip	_get_gids_from_rdma_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_gids_from_rdma_hdr
_get_gids_from_rdma_hdr:                ; @get_gids_from_rdma_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x2, LBB0_6
; %bb.1:
	mov	x19, x3
	cbz	x3, LBB0_6
; %bb.2:
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _RDMA_NETWORK_IPV4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_NETWORK_IPV4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
	add	x1, x21, #4
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	mov	x0, sp
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #8]
	ldr	w21, [sp]
	mov	x1, x20
	bl	_ipv6_addr_set_v4mapped
	mov	x0, x21
	mov	x1, x19
	bl	_ipv6_addr_set_v4mapped
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _RDMA_NETWORK_IPV6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_NETWORK_IPV6@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RDMA_NETWORK_IB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDMA_NETWORK_IB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x19]
	ldr	w8, [x21]
	str	w8, [x20]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_NETWORK_IPV4,4,2          ; @RDMA_NETWORK_IPV4
	.comm	_RDMA_NETWORK_IPV6,4,2          ; @RDMA_NETWORK_IPV6
	.comm	_RDMA_NETWORK_IB,4,2            ; @RDMA_NETWORK_IB
	.no_dead_strip	_get_gids_from_rdma_hdr
.subsections_via_symbols
