	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_usage
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_3:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	subl	%r13d, %ebx
	cmpl	$2, %ebx
	jl	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_usage
LBB0_5:
	movq	(%r12,%r13,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_getdomainname
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_setdomainname
	testq	%rax, %rax
	jne	LBB0_7
LBB0_11:
	xorl	%edi, %edi
	callq	_exit
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"setdomainname"

L_.str.2:                               ## @.str.2
	.asciz	"getdomainname"

L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x9, x20
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_usage
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	cmn	w0, #1
	b.ne	LBB0_2
LBB0_3:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	sub	w8, w22, w23
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
	bl	_usage
LBB0_5:
	ldr	x21, [x21, x23, lsl #3]
	cbnz	x21, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_getdomainname
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_setdomainname
	cbnz	x0, LBB0_11
LBB0_10:
	mov	w0, #0
	bl	_exit
LBB0_11:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"setdomainname"

l_.str.2:                               ; @.str.2
	.asciz	"getdomainname"

l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

.subsections_via_symbols
