	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_egg_compile
_cmd_egg_compile:                       ## @cmd_egg_compile
	.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
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_r_egg_option_get
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_r_egg_shellcode
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_r_egg_compile
	movq	%r15, %rdi
	callq	_r_egg_assemble
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_egg_option_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_r_egg_padding
	movq	%rbx, %rdi
	callq	_free
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_r_egg_option_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_r_egg_encode
	movq	%rbx, %rdi
	callq	_free
LBB0_14:
	movq	%r15, %rdi
	callq	_r_egg_get_bin
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %rdi
	callq	_showBuffer
	movl	$1, %r14d
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_eprintf
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_18
LBB0_15:
	xorl	%r14d, %r14d
LBB0_17:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.6(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_r_egg_option_set
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_r_egg_option_set
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_r_egg_option_set
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_r_egg_option_set
	movq	%r15, %rdi
	callq	_r_egg_reset
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"egg.shellcode"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown shellcode '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"Setup a shellcode before (gi command)\n"

L_.str.3:                               ## @.str.3
	.asciz	"r_egg_assemble: invalid assembly\n"

L_.str.4:                               ## @.str.4
	.asciz	"egg.padding"

L_.str.5:                               ## @.str.5
	.asciz	"egg.encoder"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"key"

	.no_dead_strip	_cmd_egg_compile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_egg_compile
_cmd_egg_compile:                       ; @cmd_egg_compile
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_egg_option_get
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_r_egg_shellcode
	cbz	w0, LBB0_16
; %bb.3:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_r_egg_compile
	mov	x0, x19
	bl	_r_egg_assemble
	cbz	w0, LBB0_17
; %bb.4:
Lloh2:
	adrp	x1, l_.str.4@PAGE
Lloh3:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_r_egg_option_get
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_r_egg_padding
	mov	x0, x20
	bl	_free
LBB0_7:
Lloh4:
	adrp	x1, l_.str.5@PAGE
Lloh5:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_r_egg_option_get
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_r_egg_encode
	mov	x0, x20
	bl	_free
LBB0_10:
	mov	x0, x19
	bl	_r_egg_get_bin
	cbz	x0, LBB0_18
; %bb.11:
	bl	_showBuffer
	mov	w20, #1
	b	LBB0_19
LBB0_12:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_eprintf
	mov	x0, x20
	bl	_free
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_17:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
	b	LBB0_14
LBB0_18:
	mov	w20, #0
LBB0_19:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
Lloh14:
	adrp	x21, l_.str.6@PAGE
Lloh15:
	add	x21, x21, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_r_egg_option_set
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_r_egg_option_set
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_r_egg_option_set
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_r_egg_option_set
	mov	x0, x19
	bl	_r_egg_reset
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"egg.shellcode"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown shellcode '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"Setup a shellcode before (gi command)\n"

l_.str.3:                               ; @.str.3
	.asciz	"r_egg_assemble: invalid assembly\n"

l_.str.4:                               ; @.str.4
	.asciz	"egg.padding"

l_.str.5:                               ; @.str.5
	.asciz	"egg.encoder"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"key"

	.no_dead_strip	_cmd_egg_compile
.subsections_via_symbols
