	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_parse_args
	leaq	-40(%rbp), %rdi
	callq	_ldns_resolver_new_default
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_ldns_get_errorstr_by_id
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movq	-40(%rbp), %rdi
	callq	_ldns_resolver_nameserver_count
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_ldns_resolver_push_default_servers
LBB0_4:
	movq	-40(%rbp), %rdi
	movq	_o_tcp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_ldns_resolver_set_usevc
	movq	_o_timeout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jg	LBB0_9
## %bb.5:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.7:
	movq	_DEFAULT_UDP_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_DEFAULT_TCP_TIMEOUT@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rdx
LBB0_9:
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ldns_resolver_set_timeout
	movq	-40(%rbp), %rdi
	movq	_o_retries@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	callq	_ldns_resolver_set_retry
	movq	-40(%rbp), %rdi
	movq	_o_ipversion@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ldns_resolver_set_ip6
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ldns_resolver_set_defnames
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ldns_resolver_set_fallback
	movq	_o_server@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	-40(%rbp), %rdi
	callq	_resolver_set_nameserver_str
LBB0_11:
	movq	_o_name@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdi
	callq	_ldns_str2rdf_a
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ldns_rdf_reverse_a
	jmp	LBB0_13
LBB0_16:
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdi
	callq	_ldns_str2rdf_aaaa
	cmpq	(%r14), %rax
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rdi
	movq	_o_ip6_int@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_ldns_rdf_reverse_aaaa
LBB0_13:
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movl	(%r15), %r14d
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ldns_get_errorstr_by_id
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_die
LBB0_15:
	movq	_M_SINGLE_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_o_mode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_LDNS_RR_TYPE_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_o_rrtype@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_doquery
	jmp	LBB0_25
LBB0_18:
	movq	_o_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_M_SOA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_dosoa@GOTPCREL(%rip), %r12
	jmp	LBB0_24
LBB0_20:
	movq	_M_AXFR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.21:
	movq	_M_IXFR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_23:
	movq	_dozonetransfer@GOTPCREL(%rip), %r12
	jmp	LBB0_24
LBB0_22:
	movq	_dosearch@GOTPCREL(%rip), %r12
LBB0_24:
	movq	-40(%rbp), %r14
	movl	(%r15), %edi
	callq	_safe_str2rdf_dname
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_ndots
	movq	_o_ndots@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setge	%dl
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*%r12
LBB0_25:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error creating resolver: %s"

	.comm	_o_tcp,8,3                      ## @o_tcp
	.comm	_o_timeout,8,3                  ## @o_timeout
	.comm	_DEFAULT_TCP_TIMEOUT,8,3        ## @DEFAULT_TCP_TIMEOUT
	.comm	_DEFAULT_UDP_TIMEOUT,8,3        ## @DEFAULT_UDP_TIMEOUT
	.comm	_o_retries,8,3                  ## @o_retries
	.comm	_o_ipversion,4,2                ## @o_ipversion
	.comm	_o_server,8,3                   ## @o_server
	.comm	_o_name,4,2                     ## @o_name
L_.str.1:                               ## @.str.1
	.asciz	"in-addr.arpa"

L_.str.2:                               ## @.str.2
	.asciz	"can't reverse '%s': %s"

	.comm	_LDNS_STATUS_MEM_ERR,8,3        ## @LDNS_STATUS_MEM_ERR
	.comm	_M_SINGLE_Q,8,3                 ## @M_SINGLE_Q
	.comm	_o_mode,8,3                     ## @o_mode
	.comm	_LDNS_RR_TYPE_PTR,4,2           ## @LDNS_RR_TYPE_PTR
	.comm	_o_rrtype,4,2                   ## @o_rrtype
	.comm	_o_ip6_int,8,3                  ## @o_ip6_int
L_.str.3:                               ## @.str.3
	.asciz	"ip6.int"

L_.str.4:                               ## @.str.4
	.asciz	"ip6.arpa"

	.comm	_M_SOA,8,3                      ## @M_SOA
	.comm	_M_AXFR,8,3                     ## @M_AXFR
	.comm	_M_IXFR,8,3                     ## @M_IXFR
	.comm	_o_ndots,8,3                    ## @o_ndots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_parse_args
	add	x0, sp, #16
	bl	_ldns_resolver_new_default
Lloh0:
	adrp	x19, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	bl	_ldns_get_errorstr_by_id
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_die
LBB0_2:
	ldr	x0, [sp, #16]
	bl	_ldns_resolver_nameserver_count
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #16]
	bl	_ldns_resolver_push_default_servers
LBB0_4:
	ldr	x0, [sp, #16]
Lloh4:
	adrp	x20, _o_tcp@GOTPAGE
Lloh5:
	ldr	x20, [x20, _o_tcp@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_ldns_resolver_set_usevc
Lloh6:
	adrp	x8, _o_timeout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _o_timeout@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	cmp	x2, #0
	b.gt	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _DEFAULT_TCP_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_TCP_TIMEOUT@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh11:
	adrp	x10, _DEFAULT_UDP_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DEFAULT_UDP_TIMEOUT@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	x2, [x8]
LBB0_6:
	ldr	x0, [sp, #16]
	mov	x1, #0
	bl	_ldns_resolver_set_timeout
	ldr	x0, [sp, #16]
Lloh13:
	adrp	x8, _o_retries@GOTPAGE
Lloh14:
	ldr	x8, [x8, _o_retries@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, #1
	bl	_ldns_resolver_set_retry
	ldr	x0, [sp, #16]
Lloh16:
	adrp	x8, _o_ipversion@GOTPAGE
Lloh17:
	ldr	x8, [x8, _o_ipversion@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_ldns_resolver_set_ip6
	ldr	x0, [sp, #16]
	mov	w1, #0
	bl	_ldns_resolver_set_defnames
	ldr	x0, [sp, #16]
	mov	w1, #0
	bl	_ldns_resolver_set_fallback
Lloh19:
	adrp	x8, _o_server@GOTPAGE
Lloh20:
	ldr	x8, [x8, _o_server@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	x0, [sp, #16]
	bl	_resolver_set_nameserver_str
LBB0_8:
Lloh22:
	adrp	x21, _o_name@GOTPAGE
Lloh23:
	ldr	x21, [x21, _o_name@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #24
	bl	_ldns_str2rdf_a
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.9:
	ldr	x0, [sp, #24]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ldns_rdf_reverse_a
	mov	x19, x0
	cbnz	x0, LBB0_11
LBB0_10:
	ldr	w20, [x21]
Lloh26:
	adrp	x8, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
Lloh28:
	ldr	x0, [x8]
	bl	_ldns_get_errorstr_by_id
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_die
LBB0_11:
Lloh31:
	adrp	x8, _M_SINGLE_Q@GOTPAGE
Lloh32:
	ldr	x8, [x8, _M_SINGLE_Q@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _o_mode@GOTPAGE
Lloh35:
	ldr	x9, [x9, _o_mode@GOTPAGEOFF]
Lloh36:
	adrp	x10, _LDNS_RR_TYPE_PTR@GOTPAGE
Lloh37:
	ldr	x10, [x10, _LDNS_RR_TYPE_PTR@GOTPAGEOFF]
Lloh38:
	str	x8, [x9]
Lloh39:
	ldr	w8, [x10]
Lloh40:
	adrp	x9, _o_rrtype@GOTPAGE
Lloh41:
	ldr	x9, [x9, _o_rrtype@GOTPAGEOFF]
Lloh42:
	str	w8, [x9]
	ldr	x0, [sp, #16]
	mov	x1, x19
	bl	_doquery
	b	LBB0_19
LBB0_12:
	ldr	w1, [x21]
	add	x0, sp, #24
	bl	_ldns_str2rdf_aaaa
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [sp, #24]
Lloh43:
	adrp	x8, _o_ip6_int@GOTPAGE
Lloh44:
	ldr	x8, [x8, _o_ip6_int@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
Lloh46:
	adrp	x9, l_.str.3@PAGE
Lloh47:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh48:
	adrp	x10, l_.str.4@PAGE
Lloh49:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x1, x10, x9, eq
	bl	_ldns_rdf_reverse_aaaa
	mov	x19, x0
	cbnz	x0, LBB0_11
	b	LBB0_10
LBB0_14:
Lloh50:
	adrp	x8, _o_mode@GOTPAGE
Lloh51:
	ldr	x8, [x8, _o_mode@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _M_SOA@GOTPAGE
Lloh54:
	ldr	x9, [x9, _M_SOA@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh56:
	adrp	x22, _dosoa@GOTPAGE
Lloh57:
	ldr	x22, [x22, _dosoa@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh58:
	adrp	x9, _M_AXFR@GOTPAGE
Lloh59:
	ldr	x9, [x9, _M_AXFR@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
Lloh61:
	adrp	x22, _dozonetransfer@GOTPAGE
Lloh62:
	ldr	x22, [x22, _dozonetransfer@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.17:
Lloh63:
	adrp	x9, _M_IXFR@GOTPAGE
Lloh64:
	ldr	x9, [x9, _M_IXFR@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
Lloh66:
	adrp	x10, _dosearch@GOTPAGE
Lloh67:
	ldr	x10, [x10, _dosearch@GOTPAGEOFF]
	cmp	x8, x9
	csel	x22, x22, x10, eq
LBB0_18:
	ldr	x19, [sp, #16]
	ldr	w0, [x21]
	bl	_safe_str2rdf_dname
	mov	x20, x0
	ldr	w0, [x21]
	bl	_ndots
Lloh68:
	adrp	x8, _o_ndots@GOTPAGE
Lloh69:
	ldr	x8, [x8, _o_ndots@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w2, ge
	mov	x0, x19
	mov	x1, x20
	blr	x22
LBB0_19:
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error creating resolver: %s"

	.comm	_o_tcp,8,3                      ; @o_tcp
	.comm	_o_timeout,8,3                  ; @o_timeout
	.comm	_DEFAULT_TCP_TIMEOUT,8,3        ; @DEFAULT_TCP_TIMEOUT
	.comm	_DEFAULT_UDP_TIMEOUT,8,3        ; @DEFAULT_UDP_TIMEOUT
	.comm	_o_retries,8,3                  ; @o_retries
	.comm	_o_ipversion,4,2                ; @o_ipversion
	.comm	_o_server,8,3                   ; @o_server
	.comm	_o_name,4,2                     ; @o_name
l_.str.1:                               ; @.str.1
	.asciz	"in-addr.arpa"

l_.str.2:                               ; @.str.2
	.asciz	"can't reverse '%s': %s"

	.comm	_LDNS_STATUS_MEM_ERR,8,3        ; @LDNS_STATUS_MEM_ERR
	.comm	_M_SINGLE_Q,8,3                 ; @M_SINGLE_Q
	.comm	_o_mode,8,3                     ; @o_mode
	.comm	_LDNS_RR_TYPE_PTR,4,2           ; @LDNS_RR_TYPE_PTR
	.comm	_o_rrtype,4,2                   ; @o_rrtype
	.comm	_o_ip6_int,8,3                  ; @o_ip6_int
l_.str.3:                               ; @.str.3
	.asciz	"ip6.int"

l_.str.4:                               ; @.str.4
	.asciz	"ip6.arpa"

	.comm	_M_SOA,8,3                      ; @M_SOA
	.comm	_M_AXFR,8,3                     ; @M_AXFR
	.comm	_M_IXFR,8,3                     ; @M_IXFR
	.comm	_o_ndots,8,3                    ; @o_ndots
.subsections_via_symbols
