	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maccalc_do_mac2bin
_maccalc_do_mac2bin:                    ## @maccalc_do_mac2bin
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAC_ADDRESS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpl	$1, %ebx
	jne	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	movq	%r14, %rsi
	callq	_parse_mac
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_write
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%r12, %rcx
	je	LBB0_6
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	_ERR_IO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_usage
	movq	_ERR_INVALID@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_ADDRESS_LEN,4,2            ## @MAC_ADDRESS_LEN
	.comm	_ERR_INVALID,4,2                ## @ERR_INVALID
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write to stdout\n"

	.comm	_ERR_IO,4,2                     ## @ERR_IO
	.no_dead_strip	_maccalc_do_mac2bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maccalc_do_mac2bin
_maccalc_do_mac2bin:                    ; @maccalc_do_mac2bin
	.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
	sub	sp, sp, #16
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	x8, _MAC_ADDRESS_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_ADDRESS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x0, [x1]
	mov	x1, x20
	bl	_parse_mac
	cbnz	w0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x19
	b.ne	LBB0_8
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	bl	_usage
Lloh11:
	adrp	x8, _ERR_INVALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_INVALID@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh21:
	adrp	x8, _ERR_IO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_IO@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_ADDRESS_LEN,4,2            ; @MAC_ADDRESS_LEN
	.comm	_ERR_INVALID,4,2                ; @ERR_INVALID
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write to stdout\n"

	.comm	_ERR_IO,4,2                     ; @ERR_IO
	.no_dead_strip	_maccalc_do_mac2bin
.subsections_via_symbols
