	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ah_attr_by_ipv4
_set_ah_attr_by_ipv4:                   ## @set_ah_attr_by_ipv4
	.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, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	12(%rdx), %edi
	callq	_be32toh
	movl	%eax, %edi
	callq	_IN_CLASSD
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	12(%r13), %edi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_map_ipv4_addr_to_ipv6
	movq	_IBV_GID_TYPE_ROCE_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ibv_find_gid_index
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	8(%r13), %edi
	leaq	16(%r14), %rsi
	callq	_map_ipv4_addr_to_ipv6
	movl	%ebx, %eax
	movq	%rax, 8(%r14)
	movl	4(%r13), %eax
	movl	%eax, 4(%r14)
	movl	(%r13), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_IBV_GID_TYPE_ROCE_V2,4,2       ## @IBV_GID_TYPE_ROCE_V2
	.no_dead_strip	_set_ah_attr_by_ipv4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ah_attr_by_ipv4
_set_ah_attr_by_ipv4:                   ; @set_ah_attr_by_ipv4
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x2, #12]
	bl	_be32toh
	bl	_IN_CLASSD
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w21, #-1
	b	LBB0_4
LBB0_2:
	ldr	w0, [x20, #12]
	add	x1, sp, #8
	bl	_map_ipv4_addr_to_ipv6
Lloh6:
	adrp	x8, _IBV_GID_TYPE_ROCE_V2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IBV_GID_TYPE_ROCE_V2@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_ibv_find_gid_index
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
	add	x1, x19, #16
	bl	_map_ipv4_addr_to_ipv6
	mov	w8, w21
	str	x8, [x19, #8]
	ldr	d0, [x20]
	str	d0, [x19]
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_IBV_GID_TYPE_ROCE_V2,4,2       ; @IBV_GID_TYPE_ROCE_V2
	.no_dead_strip	_set_ah_attr_by_ipv4
.subsections_via_symbols
