	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_default_domain
_get_default_domain:                    ## @get_default_domain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_default_domain@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	leaq	-272(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_getdomainname
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	leaq	-272(%rbp), %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	leaq	-272(%rbp), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-272(%rbp), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	(%rbx), %rax
	jmp	LBB0_1
LBB0_7:
	xorl	%eax, %eax
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_10
## %bb.2:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_default_domain,8,3             ## @default_domain
	.no_dead_strip	_get_default_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_default_domain
_get_default_domain:                    ; @get_default_domain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x19, _default_domain@GOTPAGE
Lloh4:
	ldr	x19, [x19, _default_domain@GOTPAGEOFF]
	ldr	x0, [x19]
	cbnz	x0, LBB0_6
; %bb.1:
	add	x0, sp, #8
	mov	w1, #256
	bl	_getdomainname
	tbnz	x0, #63, LBB0_5
; %bb.2:
	add	x0, sp, #8
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	add	x0, sp, #8
	bl	_strlen
	add	w0, w0, #1
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	add	x1, sp, #8
	bl	_strcpy
	ldr	x0, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_default_domain,8,3             ; @default_domain
	.no_dead_strip	_get_default_domain
.subsections_via_symbols
