	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostname                       ## -- Begin function hostname
	.p2align	4, 0x90
_hostname:                              ## @hostname
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$0, _hostname.initialized(%rip)
	jne	LBB0_22
## %bb.1:
	movq	_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.2:
	movb	(%rcx), %al
	testb	%al, %al
	je	LBB0_12
## %bb.3:
	cmpb	$47, %al
	jne	LBB0_23
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r14
	leaq	_hostname.name(%rip), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%rax, %rdx
	callq	_fgets
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_fclose
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:
	movb	_hostname.name(%rip), %al
	testb	%al, %al
	je	LBB0_11
## %bb.7:
	leaq	_hostname.name(%rip), %rbx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movsbl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:
	movb	$0, (%rbx)
	cmpb	$0, _hostname.name(%rip)
	jne	LBB0_21
LBB0_12:
	leaq	_hostname.name(%rip), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_gethostname
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movb	$0, _hostname.name(%rip)
	movb	$0, _hostname.name+255(%rip)
LBB0_19:
	movb	$0, (%rbx)
	cmpb	$0, _hostname.name(%rip)
	jne	LBB0_21
## %bb.20:
	leaq	_hostname.name(%rip), %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	$256, %esi                      ## imm = 0x100
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_21
LBB0_14:
	movb	_hostname.name(%rip), %al
	movb	$0, _hostname.name+255(%rip)
	testb	%al, %al
	je	LBB0_19
## %bb.15:
	leaq	_hostname.name(%rip), %rbx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movsbl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_23:
	leaq	_hostname.name(%rip), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$256, %esi                      ## imm = 0x100
	xorl	%eax, %eax
	callq	_snprintf
LBB0_21:
	movb	$1, _hostname.initialized(%rip)
LBB0_22:
	leaq	_hostname.name(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_hostname.name,256,4 ## @hostname.name
.zerofill __DATA,__bss,_hostname.initialized,1,2 ## @hostname.initialized
	.comm	_config,8,3                     ## @config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"_.-"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"unknown-hostname"

	.comm	_HOST_NAME_MAX,4,2              ## @HOST_NAME_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostname                       ; -- Begin function hostname
	.p2align	2
_hostname:                              ; @hostname
	.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
	adrp	x22, _hostname.initialized@PAGE
	ldrb	w8, [x22, _hostname.initialized@PAGEOFF]
	tbnz	w8, #0, LBB0_24
; %bb.1:
Lloh0:
	adrp	x8, _config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_12
; %bb.2:
	ldrb	w8, [x0]
	cbz	w8, LBB0_12
; %bb.3:
	cmp	w8, #47
	b.ne	LBB0_21
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_12
; %bb.5:
	mov	x20, x0
Lloh5:
	adrp	x19, _hostname.name@PAGE
Lloh6:
	add	x19, x19, _hostname.name@PAGEOFF
	mov	x0, x19
	mov	w1, #256
	mov	x2, x20
	bl	_fgets
	mov	x21, x0
	mov	x0, x20
	bl	_fclose
	cbz	x21, LBB0_12
; %bb.6:
	ldrb	w8, [x19]
	cbz	w8, LBB0_11
; %bb.7:
Lloh7:
	adrp	x19, _hostname.name@PAGE
Lloh8:
	add	x19, x19, _hostname.name@PAGEOFF
Lloh9:
	adrp	x20, l_.str.1@PAGE
Lloh10:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x19, #1]!
	cbz	w8, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isalnum
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	w1, [x19]
	mov	x0, x20
	bl	_strchr
	cbnz	x0, LBB0_8
LBB0_11:
	strb	wzr, [x19]
	adrp	x8, _hostname.name@PAGE
	ldrb	w8, [x8, _hostname.name@PAGEOFF]
	cbnz	w8, LBB0_23
LBB0_12:
Lloh11:
	adrp	x19, _hostname.name@PAGE
Lloh12:
	add	x19, x19, _hostname.name@PAGEOFF
	mov	x0, x19
	mov	w1, #256
	bl	_gethostname
	cbz	x0, LBB0_16
; %bb.13:
	strb	wzr, [x19]
	strb	wzr, [x19, #255]
LBB0_14:
	strb	wzr, [x19]
	adrp	x8, _hostname.name@PAGE
	ldrb	w8, [x8, _hostname.name@PAGEOFF]
	cbnz	w8, LBB0_23
; %bb.15:
Lloh13:
	adrp	x0, _hostname.name@PAGE
Lloh14:
	add	x0, x0, _hostname.name@PAGEOFF
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_16:
	ldrb	w8, [x19]
	strb	wzr, [x19, #255]
	cbz	w8, LBB0_14
; %bb.17:
Lloh17:
	adrp	x19, _hostname.name@PAGE
Lloh18:
	add	x19, x19, _hostname.name@PAGEOFF
Lloh19:
	adrp	x20, l_.str.1@PAGE
Lloh20:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w8, [x19, #1]!
	cbz	w8, LBB0_14
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isalnum
	cbnz	x0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrsb	w1, [x19]
	mov	x0, x20
	bl	_strchr
	cbnz	x0, LBB0_18
	b	LBB0_14
LBB0_21:
Lloh21:
	adrp	x8, _hostname.name@PAGE
Lloh22:
	add	x8, x8, _hostname.name@PAGEOFF
	str	x0, [sp]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x8
LBB0_22:
	mov	w1, #256
	bl	_snprintf
LBB0_23:
	mov	w8, #1
	strb	w8, [x22, _hostname.initialized@PAGEOFF]
LBB0_24:
Lloh25:
	adrp	x0, _hostname.name@PAGE
Lloh26:
	add	x0, x0, _hostname.name@PAGEOFF
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_hostname.name,256,0 ; @hostname.name
.zerofill __DATA,__bss,_hostname.initialized,1,2 ; @hostname.initialized
	.comm	_config,8,3                     ; @config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"_.-"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"unknown-hostname"

	.comm	_HOST_NAME_MAX,4,2              ; @HOST_NAME_MAX
.subsections_via_symbols
