	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_src_l2_addr
_copy_src_l2_addr:                      ## @copy_src_l2_addr
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdx), %rsi
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rdma_translate_ip
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_rdma_copy_src_l2_addr
	xorl	%r14d, %r14d
LBB0_3:
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_has_gateway
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%r12), %rax
	movq	_ARPHRD_INFINIBAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_8:
	movq	_RDMA_NETWORK_IB@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r13), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_RDMA_NETWORK_IPV4@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_RDMA_NETWORK_IPV6@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_ARPHRD_INFINIBAND,8,3          ## @ARPHRD_INFINIBAND
	.comm	_AF_INET,8,3                    ## @AF_INET
	.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	_copy_src_l2_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_src_l2_addr
_copy_src_l2_addr:                      ; @copy_src_l2_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x2]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_rdma_translate_ip
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_rdma_copy_src_l2_addr
	mov	w22, #0
LBB0_3:
	ldr	x1, [x20]
	mov	x0, x23
	bl	_has_gateway
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _ARPHRD_INFINIBAND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_INFINIBAND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _RDMA_NETWORK_IB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDMA_NETWORK_IB@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _AF_INET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh10:
	adrp	x10, _RDMA_NETWORK_IPV4@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RDMA_NETWORK_IPV4@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x11, _RDMA_NETWORK_IPV6@GOTPAGE
Lloh14:
	ldr	x11, [x11, _RDMA_NETWORK_IPV6@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_ARPHRD_INFINIBAND,8,3          ; @ARPHRD_INFINIBAND
	.comm	_AF_INET,8,3                    ; @AF_INET
	.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	_copy_src_l2_addr
.subsections_via_symbols
