	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_hostalias                  ## -- Begin function res_hostalias
	.p2align	4, 0x90
_res_hostalias:                         ## @res_hostalias
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movq	_RES_NOALIASES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_issetugid
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	xorl	%r13d, %r13d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.5:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_setbuf
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, -1(%r12,%rcx)
	movq	%rcx, %rax
	incq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rcx, %rbx
	movq	%rcx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %r14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_12
	jmp	LBB0_22
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$0, -1(%rbx)
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, -1(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ns_samename
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$1, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_9
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	callq	_isspace
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:
	cmpb	$0, -1(%rbx)
	je	LBB0_22
## %bb.18:
	leaq	-1(%rbx), %r14
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_21
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_19
LBB0_21:
	movb	$0, (%rbx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	-1(%rbx), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strncpy
	movb	$0, -1(%r13,%rbx)
	jmp	LBB0_23
LBB0_22:
	xorl	%r13d, %r13d
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	jmp	LBB0_4
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_RES_NOALIASES,4,2              ## @RES_NOALIASES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOSTALIASES"

L_.str.1:                               ## @.str.1
	.asciz	"re"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_hostalias                  ; -- Begin function res_hostalias
	.p2align	2
_res_hostalias:                         ; @res_hostalias
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _RES_NOALIASES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RES_NOALIASES@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	bl	_issetugid
	cbz	x0, LBB0_5
LBB0_2:
	mov	x19, #0
LBB0_3:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.4:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.6:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_2
; %bb.7:
	mov	x21, x0
	mov	x1, #0
	bl	_setbuf
	add	x8, x23, x24
	sturb	wzr, [x8, #-1]
	add	x26, x24, #1
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x24]
	cbz	w8, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x26
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w8, #0xff
	bl	_isspace
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrb	w8, [x25], #1
	cbnz	w8, LBB0_11
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldurb	w8, [x25, #-1]
	cbz	w8, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	sturb	wzr, [x25, #-1]
	mov	x0, x24
	mov	x1, x22
	bl	_ns_samename
	cmp	w0, #1
	b.ne	LBB0_8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x25], #1
	bl	_isspace
	cbnz	x0, LBB0_15
; %bb.16:
	mov	x22, x25
	ldrb	w8, [x22, #-1]!
	cbz	w8, LBB0_21
; %bb.17:
	ldrb	w8, [x25]
	cbz	w8, LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w8, [x25, #1]!
	cbnz	w8, LBB0_18
LBB0_20:
	strb	wzr, [x25]
	sub	x20, x20, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_strncpy
	strb	wzr, [x19, x20]
	b	LBB0_22
LBB0_21:
	mov	x19, #0
LBB0_22:
	mov	x0, x21
	bl	_fclose
	b	LBB0_3
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_RES_NOALIASES,4,2              ; @RES_NOALIASES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOSTALIASES"

l_.str.1:                               ; @.str.1
	.asciz	"re"

.subsections_via_symbols
