	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_format_hdr
_cma_format_hdr:                        ## @cma_format_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_CMA_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	%rsi, %rdi
	callq	_cma_family
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_cma_src_addr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_cma_dst_addr
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_cma_set_ip_ver
	movl	4(%r14), %eax
	movl	%eax, 16(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_cma_family
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_cma_src_addr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_cma_dst_addr
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_cma_set_ip_ver
	movl	4(%r14), %eax
	movl	%eax, 12(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15)
LBB0_4:
	movl	(%r14), %eax
	movl	%eax, (%r15)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMA_VERSION,4,2                ## @CMA_VERSION
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.no_dead_strip	_cma_format_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_format_hdr
_cma_format_hdr:                        ; @cma_format_hdr
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CMA_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMA_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	mov	x0, x1
	bl	_cma_family
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_cma_src_addr
	mov	x21, x0
	mov	x0, x20
	bl	_cma_dst_addr
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4
	bl	_cma_set_ip_ver
	ldr	w8, [x21, #4]
	str	w8, [x19, #16]
	ldr	w8, [x20, #4]
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_cma_family
Lloh6:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_cma_src_addr
	mov	x21, x0
	mov	x0, x20
	bl	_cma_dst_addr
	mov	x20, x0
	mov	x0, x19
	mov	w1, #6
	bl	_cma_set_ip_ver
	ldr	w8, [x21, #4]
	str	w8, [x19, #12]
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
LBB0_4:
	ldr	w8, [x21]
	str	w8, [x19]
LBB0_5:
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CMA_VERSION,4,2                ; @CMA_VERSION
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.no_dead_strip	_cma_format_hdr
.subsections_via_symbols
