	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_format_hdr
_ds_format_hdr:                         ## @ds_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
	movq	(%rsi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$4, (%rdi)
	movq	_DS_IPV4_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movl	4(%rsi), %eax
	movl	%eax, 16(%rdi)
	movl	(%rsi), %eax
	movl	%eax, 12(%rdi)
	popq	%rbp
	retq
LBB0_2:
	movl	$6, (%rdi)
	movq	_DS_IPV6_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movl	8(%rsi), %eax
	movl	%eax, 16(%rdi)
	movl	4(%rsi), %eax
	movl	%eax, 8(%rdi)
	addq	$4, %rdi
	movl	$16, %edx
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_DS_IPV4_HDR_LEN,4,2            ## @DS_IPV4_HDR_LEN
	.comm	_DS_IPV6_HDR_LEN,4,2            ## @DS_IPV6_HDR_LEN
	.no_dead_strip	_ds_format_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_format_hdr
_ds_format_hdr:                         ; @ds_format_hdr
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #4
	str	w8, [x0]
Lloh3:
	adrp	x8, _DS_IPV4_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DS_IPV4_HDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	ldr	w8, [x1, #4]
	str	w8, [x0, #16]
	ldr	w8, [x1]
	str	w8, [x0, #12]
	ret
LBB0_2:
	mov	w8, #6
	str	w8, [x0]
Lloh6:
	adrp	x8, _DS_IPV6_HDR_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DS_IPV6_HDR_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	ldr	w8, [x1, #8]
	str	w8, [x0, #16]
	ldr	w9, [x1, #4]
	add	x8, x0, #4
	str	w9, [x0, #8]
	mov	x0, x8
	mov	w2, #16
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_DS_IPV4_HDR_LEN,4,2            ; @DS_IPV4_HDR_LEN
	.comm	_DS_IPV6_HDR_LEN,4,2            ; @DS_IPV6_HDR_LEN
	.no_dead_strip	_ds_format_hdr
.subsections_via_symbols
