	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	_maccalc_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$1, %edi
	jg	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_17
LBB0_2:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	8(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_1
LBB0_9:
	movq	_maccalc_do_add@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_maccalc_do_and@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_maccalc_do_or@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_maccalc_do_xor@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_maccalc_do_mac2bin@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_maccalc_do_bin2mac@GOTPCREL(%rip), %rax
LBB0_15:
	addl	$-2, %r14d
	addq	$16, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maccalc_name,8,3               ## @maccalc_name
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"xor"

L_.str.4:                               ## @.str.4
	.asciz	"mac2bin"

L_.str.5:                               ## @.str.5
	.asciz	"bin2mac"

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"unknown command '%s'\n"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _maccalc_name@GOTPAGE
Lloh1:
	ldr	x9, [x9, _maccalc_name@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
	cmp	w0, #1
	b.gt	LBB0_2
LBB0_1:
	bl	_usage
Lloh3:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
	b	LBB0_16
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.5:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.8:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	b	LBB0_1
LBB0_9:
Lloh22:
	adrp	x8, _maccalc_do_add@GOTPAGE
Lloh23:
	ldr	x8, [x8, _maccalc_do_add@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh24:
	adrp	x8, _maccalc_do_and@GOTPAGE
Lloh25:
	ldr	x8, [x8, _maccalc_do_and@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh26:
	adrp	x8, _maccalc_do_or@GOTPAGE
Lloh27:
	ldr	x8, [x8, _maccalc_do_or@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh28:
	adrp	x8, _maccalc_do_xor@GOTPAGE
Lloh29:
	ldr	x8, [x8, _maccalc_do_xor@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh30:
	adrp	x8, _maccalc_do_mac2bin@GOTPAGE
Lloh31:
	ldr	x8, [x8, _maccalc_do_mac2bin@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh32:
	adrp	x8, _maccalc_do_bin2mac@GOTPAGE
Lloh33:
	ldr	x8, [x8, _maccalc_do_bin2mac@GOTPAGEOFF]
LBB0_15:
	sub	w0, w20, #2
	add	x1, x19, #16
	blr	x8
Lloh34:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh36:
	adrp	x9, _EXIT_SUCCESS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EXIT_SUCCESS@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_maccalc_name,8,3               ; @maccalc_name
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"xor"

l_.str.4:                               ; @.str.4
	.asciz	"mac2bin"

l_.str.5:                               ; @.str.5
	.asciz	"bin2mac"

	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"unknown command '%s'\n"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
