	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_format_hdr
_sdp_format_hdr:                        ## @sdp_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, %r14
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_sdp_get_majv
	movq	_SDP_MAJ_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_cma_family
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_cma_src_addr
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_cma_dst_addr
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_sdp_set_ip_ver
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_cma_family
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_cma_src_addr
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_cma_dst_addr
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_sdp_set_ip_ver
	movl	4(%r15), %eax
	leaq	8(%rbx), %rdi
	movl	%eax, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	callq	_cma_ip6_clear_scope_id
	movq	%rbx, %rdi
	callq	_cma_ip6_clear_scope_id
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_MAJ_VERSION,8,3            ## @SDP_MAJ_VERSION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.no_dead_strip	_sdp_format_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_format_hdr
_sdp_format_hdr:                        ; @sdp_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
	ldr	w0, [x0, #20]
	bl	_sdp_get_majv
Lloh0:
	adrp	x8, _SDP_MAJ_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDP_MAJ_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	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_4
; %bb.2:
	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	_sdp_set_ip_ver
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
	ldr	d0, [x21]
	rev64.2s	v0, v0
	stur	d0, [x19, #12]
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_cma_family
Lloh8:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	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	_sdp_set_ip_ver
	mov	x0, x19
	ldp	w9, w8, [x21]
	str	w8, [x0, #8]!
	ldr	w8, [x20, #4]
	str	w8, [x19]
	str	w9, [x19, #16]
	bl	_cma_ip6_clear_scope_id
	mov	x0, x19
	bl	_cma_ip6_clear_scope_id
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_MAJ_VERSION,8,3            ; @SDP_MAJ_VERSION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.no_dead_strip	_sdp_format_hdr
.subsections_via_symbols
