	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RR_to_ip
_RR_to_ip:                              ## @RR_to_ip
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r13
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	$24, (%r13)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, 16(%r13)
	cmpl	$4, %r15d
	je	LBB0_2
## %bb.3:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	L_str.5(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.9:
	movq	$24, (%r13)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, 16(%r13)
	cmpl	$4, %r15d
	jne	LBB0_10
LBB0_2:
	movq	%r13, %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memmove
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	callq	_verb_addr
	jmp	LBB0_7
LBB0_12:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.13:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_5
LBB0_10:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.11:
	leaq	L_str.4(%rip), %rdi
LBB0_5:
	callq	_puts
LBB0_6:
	movq	%r13, %rdi
	callq	_free
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_verb,8,3                       ## @verb
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"resolved server address"

L_str:                                  ## @str
	.asciz	"internal error: bad type in RRtoip"

L_str.4:                                ## @str.4
	.asciz	"skipped badly formatted AAAA"

L_str.5:                                ## @str.5
	.asciz	"skipped badly formatted A"

	.no_dead_strip	_RR_to_ip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RR_to_ip
_RR_to_ip:                              ; @RR_to_ip
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.1:
	mov	w8, #24
	str	x8, [x19]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x22
	bl	_htons
	str	x0, [x19, #16]
	cmp	w21, #4
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _verb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.3:
Lloh9:
	adrp	x0, l_str.5@PAGE
Lloh10:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_7
; %bb.5:
	mov	w8, #24
	str	x8, [x19]
Lloh14:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x22
	bl	_htons
	str	x0, [x19, #16]
	cmp	w21, #4
	b.ne	LBB0_9
LBB0_6:
	add	x0, x19, #8
	mov	x1, x20
	mov	w2, #4
	bl	_memmove
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_verb_addr
	b	LBB0_13
LBB0_7:
Lloh19:
	adrp	x8, _verb@GOTPAGE
Lloh20:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.8:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _verb@GOTPAGE
Lloh25:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
Lloh27:
	adrp	x0, l_str.4@PAGE
Lloh28:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_11:
	bl	_puts
LBB0_12:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_verb,8,3                       ; @verb
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"resolved server address"

l_str:                                  ; @str
	.asciz	"internal error: bad type in RRtoip"

l_str.4:                                ; @str.4
	.asciz	"skipped badly formatted AAAA"

l_str.5:                                ; @str.5
	.asciz	"skipped badly formatted A"

	.no_dead_strip	_RR_to_ip
.subsections_via_symbols
