	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_domain_search           ## -- Begin function expand_domain_search
	.p2align	4, 0x90
_expand_domain_search:                  ## @expand_domain_search
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_DHO_DOMAIN_SEARCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	cmpq	$0, (%rax,%rcx)
	je	LBB0_12
## %bb.1:
	leaq	(%rax,%rcx), %r13
	movq	$0, -48(%rbp)
	leaq	(%rax,%rcx), %rbx
	addq	$8, %rbx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_find_search_domain_name_len
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %r14d
	incl	%r14d
	movq	-48(%rbp), %rax
	cmpq	(%rbx), %rax
	jb	LBB0_4
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	setg	%r15b
	movl	%r15d, %eax
	negl	%eax
	leal	(%r14,%rax), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_8:
	subl	%r15d, %r14d
	movq	$0, -48(%rbp)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.9:
	leaq	-48(%rbp), %r15
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_expand_search_domain_name
	movq	-56(%rbp), %rax
	movb	$32, (%rax)
	incq	-56(%rbp)
	movq	-48(%rbp), %rax
	cmpq	(%rbx), %rax
	jb	LBB0_10
LBB0_11:
	movslq	%r14d, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movb	$0, (%r15,%r14)
	movq	(%r13), %rdi
	callq	_free
	movq	%r14, (%rbx)
	movq	%r15, (%r13)
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DHO_DOMAIN_SEARCH,8,3          ## @DHO_DOMAIN_SEARCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate storage for expanded domain-search\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_domain_search           ; -- Begin function expand_domain_search
	.p2align	2
_expand_domain_search:                  ; @expand_domain_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DHO_DOMAIN_SEARCH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DHO_DOMAIN_SEARCH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x19, x8, x9, lsl #4
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.1:
	str	xzr, [sp, #8]
	mov	x21, x19
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_5
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_find_search_domain_name_len
	tbnz	w0, #31, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w20, w0
	add	w20, w8, #1
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lo	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	cmp	w20, #0
	cset	w8, gt
	sub	w22, w20, w8
	add	w0, w22, #1
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_8:
	stp	x20, xzr, [sp]
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.9:
	mov	w23, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_expand_search_domain_name
	ldr	x8, [sp]
	strb	w23, [x8]
	ldr	x8, [sp]
	add	x8, x8, #1
	str	x8, [sp]
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lo	LBB0_10
LBB0_11:
	sxtw	x22, w22
	strb	wzr, [x20, x22]
	ldr	x0, [x19]
	bl	_free
	str	x22, [x21]
	str	x20, [x19]
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DHO_DOMAIN_SEARCH,8,3          ; @DHO_DOMAIN_SEARCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate storage for expanded domain-search\n"

.subsections_via_symbols
