	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdata2sockaddr
_rdata2sockaddr:                        ## @rdata2sockaddr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	cmpl	$6, (%rax,%r15,4)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rbx
	jmp	LBB0_6
LBB0_3:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%rsi, (%rcx)
	jne	LBB0_7
## %bb.4:
	movq	(%r12), %rcx
	cmpl	$18, (%rcx,%r15,4)
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_6:
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	$16, (%r14)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.no_dead_strip	_rdata2sockaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdata2sockaddr
_rdata2sockaddr:                        ; @rdata2sockaddr
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x22]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #6
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	add	x0, x20, #8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x21, lsl #3]
	add	x1, x8, #2
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x22]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #18
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh9:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x21, lsl #3]
	add	x1, x8, #2
	mov	x0, x20
LBB0_6:
	mov	w2, #4
	bl	_memcpy
	mov	w8, #16
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.no_dead_strip	_rdata2sockaddr
.subsections_via_symbols
