	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_origin
_handle_origin:                         ## @handle_origin
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	decq	%rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_strncmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	addq	$6, %rbx
	movq	(%r15), %rdi
	callq	_free
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sldns_str2wire_dname
	movq	%rax, (%r15)
	movq	-40(%rbp), %rcx
	movq	%rcx, (%r14)
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_warn
LBB0_7:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$ORIGIN"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failure or parse error in $ORIGIN"

	.no_dead_strip	_handle_origin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_origin
_handle_origin:                         ; @handle_origin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	str	xzr, [sp, #8]
	sub	x21, x0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21, #1]!
	bl	_isspace
	cbnz	x0, LBB0_1
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	add	x21, x21, #6
	ldr	x0, [x20]
	bl	_free
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21, #1]!
	bl	_isspace
	cbnz	x0, LBB0_5
; %bb.6:
	add	x1, sp, #8
	mov	x0, x21
	bl	_sldns_str2wire_dname
	str	x0, [x20]
	ldr	x8, [sp, #8]
	str	x8, [x19]
	cbnz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_warn
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$ORIGIN"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failure or parse error in $ORIGIN"

	.no_dead_strip	_handle_origin
.subsections_via_symbols
