	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build
_build:                                 ## @build
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_r_buf_new
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_egg_option_get
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_egg_option_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	cmpb	$102, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_free
LBB0_3:
	xorl	%r13d, %r13d
LBB0_4:
	movl	(%rbx), %esi
	cmpl	$132, %esi
	je	LBB0_7
## %bb.5:
	cmpl	$131, %esi
	je	LBB0_9
## %bb.6:
	cmpl	$130, %esi
	jne	LBB0_16
LBB0_7:
	cmpl	$128, 8(%rbx)
	jne	LBB0_33
## %bb.8:
	testq	%r13, %r13
	movl	$36, %eax
	movl	$43, %r12d
	cmovel	%eax, %r12d
	movq	_x86_osx_suid_binsh@GOTPCREL(%rip), %rax
	cmoveq	_x86_osx_binsh@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_27
LBB0_9:
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_11:
	movl	8(%rbx), %eax
	xorl	%r12d, %r12d
	cmpl	$129, %eax
	je	LBB0_18
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_21
## %bb.13:
	movl	4(%rbx), %esi
	movb	$1, %cl
	cmpl	$32, %esi
	je	LBB0_23
## %bb.14:
	cmpl	$64, %esi
	jne	LBB0_22
## %bb.15:
	movq	_x86_64_linux_binsh@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_33
LBB0_18:
	movl	4(%rbx), %esi
	movb	$1, %cl
	cmpl	$16, %esi
	je	LBB0_25
## %bb.19:
	cmpl	$32, %esi
	jne	LBB0_22
## %bb.20:
	movq	_arm_linux_binsh@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_21:
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_22:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_23:
	movq	_x86_linux_binsh@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_25:
	movq	_thumb_linux_binsh@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%r13d, %r13d
LBB0_27:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.28:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_r_buf_set_bytes
	testq	%r15, %r15
	je	LBB0_33
## %bb.29:
	cmpb	$0, (%r15)
	je	LBB0_33
## %bb.30:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_32
## %bb.31:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_33
LBB0_32:
	movq	%r15, %rdi
	callq	_strlen
	leaq	1(%rax), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_r_buf_write_at
LBB0_33:
	movq	%r13, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd"

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

	.comm	_x86_osx_suid_binsh,8,3         ## @x86_osx_suid_binsh
	.comm	_x86_osx_binsh,8,3              ## @x86_osx_binsh
L_.str.2:                               ## @.str.2
	.asciz	"no suid for this platform\n"

	.comm	_x86_linux_binsh,8,3            ## @x86_linux_binsh
	.comm	_x86_64_linux_binsh,8,3         ## @x86_64_linux_binsh
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported arch %d bits\n"

	.comm	_thumb_linux_binsh,8,3          ## @thumb_linux_binsh
	.comm	_arm_linux_binsh,8,3            ## @arm_linux_binsh
L_.str.4:                               ## @.str.4
	.asciz	"Unsupported os %x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot set shell\n"

	.no_dead_strip	_build
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build
_build:                                 ; @build
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
	bl	_r_buf_new
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_r_egg_option_get
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_r_egg_option_get
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #102
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_free
	mov	x21, #0
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, #132
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #131
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_15
LBB0_6:
	ldr	w8, [x22, #8]
	cmp	w8, #128
	b.ne	LBB0_30
; %bb.7:
	mov	w24, #0
	mov	w9, #43
Lloh4:
	adrp	x8, _x86_osx_suid_binsh@GOTPAGE
Lloh5:
	ldr	x8, [x8, _x86_osx_suid_binsh@GOTPAGEOFF]
	mov	w10, #36
Lloh6:
	adrp	x11, _x86_osx_binsh@GOTPAGE
Lloh7:
	ldr	x11, [x11, _x86_osx_binsh@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x11, x8, eq
	csel	w22, w10, w9, eq
	ldr	x23, [x8]
	cbnz	x23, LBB0_25
	b	LBB0_30
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
LBB0_10:
	ldr	w8, [x22, #8]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.12:
	ldr	w8, [x22, #4]
	cmp	w8, #32
	b.eq	LBB0_22
; %bb.13:
	cmp	w8, #64
	b.ne	LBB0_21
; %bb.14:
	mov	w22, #0
	mov	x21, #0
Lloh10:
	adrp	x8, _x86_64_linux_binsh@GOTPAGE
Lloh11:
	ldr	x8, [x8, _x86_64_linux_binsh@GOTPAGEOFF]
	b	LBB0_24
LBB0_15:
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_16:
	bl	_eprintf
	b	LBB0_30
LBB0_17:
	ldr	w8, [x22, #4]
	cmp	w8, #16
	b.eq	LBB0_23
; %bb.18:
	cmp	w8, #32
	b.ne	LBB0_21
; %bb.19:
	mov	w22, #0
	mov	x21, #0
Lloh14:
	adrp	x8, _arm_linux_binsh@GOTPAGE
Lloh15:
	ldr	x8, [x8, _arm_linux_binsh@GOTPAGEOFF]
	b	LBB0_24
LBB0_20:
	mov	x21, #0
	b	LBB0_30
LBB0_21:
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
	mov	x21, #0
	b	LBB0_30
LBB0_22:
	mov	w22, #0
	mov	x21, #0
Lloh18:
	adrp	x8, _x86_linux_binsh@GOTPAGE
Lloh19:
	ldr	x8, [x8, _x86_linux_binsh@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
	mov	w22, #0
	mov	x21, #0
Lloh20:
	adrp	x8, _thumb_linux_binsh@GOTPAGE
Lloh21:
	ldr	x8, [x8, _thumb_linux_binsh@GOTPAGEOFF]
LBB0_24:
	mov	w24, #1
	ldr	x23, [x8]
	cbz	x23, LBB0_30
LBB0_25:
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_r_buf_set_bytes
	cbz	x20, LBB0_30
; %bb.26:
	ldrb	w8, [x20]
	cbz	w8, LBB0_30
; %bb.27:
	tbz	w24, #0, LBB0_29
; %bb.28:
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_29:
	mov	x0, x20
	bl	_strlen
	add	x3, x0, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_r_buf_write_at
LBB0_30:
	mov	x0, x21
	bl	_free
	mov	x0, x20
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd"

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

	.comm	_x86_osx_suid_binsh,8,3         ; @x86_osx_suid_binsh
	.comm	_x86_osx_binsh,8,3              ; @x86_osx_binsh
l_.str.2:                               ; @.str.2
	.asciz	"no suid for this platform\n"

	.comm	_x86_linux_binsh,8,3            ; @x86_linux_binsh
	.comm	_x86_64_linux_binsh,8,3         ; @x86_64_linux_binsh
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported arch %d bits\n"

	.comm	_thumb_linux_binsh,8,3          ; @thumb_linux_binsh
	.comm	_arm_linux_binsh,8,3            ; @arm_linux_binsh
l_.str.4:                               ; @.str.4
	.asciz	"Unsupported os %x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot set shell\n"

	.no_dead_strip	_build
.subsections_via_symbols
