	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_r_buf_new
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_egg_option_get
	movl	(%rbx), %esi
	cmpl	$132, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$131, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_20
LBB0_3:
	cmpl	$128, 8(%rbx)
	jne	LBB0_23
## %bb.4:
	movq	_suid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$36, %eax
	movl	$43, %r14d
	cmovel	%eax, %r14d
	movq	_x86_osx_suid_binsh@GOTPCREL(%rip), %rax
	cmoveq	_x86_osx_binsh@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_5:
	movq	_suid@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_7:
	movq	$0, (%r14)
	movl	8(%rbx), %eax
	xorl	%r14d, %r14d
	movb	$1, %r12b
	cmpl	$129, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_23
## %bb.10:
	movl	4(%rbx), %eax
	cmpl	$32, %eax
	je	LBB0_11
## %bb.12:
	cmpl	$64, %eax
	jne	LBB0_19
## %bb.13:
	movq	_x86_64_linux_binsh@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_23
LBB0_8:
	movq	_arm_linux_binsh@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_x86_linux_binsh@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.15:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_r_buf_set_bytes
	movq	_shell@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.16:
	cmpb	$0, (%rbx)
	je	LBB0_23
## %bb.17:
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.21:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_22
LBB0_18:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_r_buf_write_at
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
LBB0_22:
	xorl	%eax, %eax
	callq	_eprintf
LBB0_23:
	movq	_suid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	_shell@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port"

	.comm	_suid,8,3                       ## @suid
	.comm	_x86_osx_suid_binsh,8,3         ## @x86_osx_suid_binsh
	.comm	_x86_osx_binsh,8,3              ## @x86_osx_binsh
L_.str.1:                               ## @.str.1
	.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.2:                               ## @.str.2
	.asciz	"Unsupportted\n"

	.comm	_arm_linux_binsh,8,3            ## @arm_linux_binsh
L_.str.3:                               ## @.str.3
	.asciz	"unsupported os %x\n"

	.comm	_shell,8,3                      ## @shell
L_.str.4:                               ## @.str.4
	.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	x20, x0
	bl	_r_buf_new
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_r_egg_option_get
	ldr	w8, [x20]
Lloh2:
	adrp	x23, _suid@GOTPAGE
Lloh3:
	ldr	x23, [x23, _suid@GOTPAGEOFF]
Lloh4:
	adrp	x22, _shell@GOTPAGE
Lloh5:
	ldr	x22, [x22, _shell@GOTPAGEOFF]
	cmp	w8, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #131
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_12
LBB0_3:
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.ne	LBB0_22
; %bb.4:
	mov	w24, #0
	ldr	x8, [x23]
	mov	w9, #43
Lloh6:
	adrp	x10, _x86_osx_suid_binsh@GOTPAGE
Lloh7:
	ldr	x10, [x10, _x86_osx_suid_binsh@GOTPAGEOFF]
	mov	w11, #36
Lloh8:
	adrp	x12, _x86_osx_binsh@GOTPAGE
Lloh9:
	ldr	x12, [x12, _x86_osx_binsh@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x12, x10, eq
	csel	w20, w11, w9, eq
	ldr	x21, [x8]
	cbnz	x21, LBB0_17
	b	LBB0_22
LBB0_5:
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
LBB0_7:
	str	xzr, [x23]
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_22
; %bb.9:
	ldr	w8, [x20, #4]
	cmp	w8, #32
	b.eq	LBB0_15
; %bb.10:
	cmp	w8, #64
	b.ne	LBB0_23
; %bb.11:
	mov	w20, #0
Lloh12:
	adrp	x8, _x86_64_linux_binsh@GOTPAGE
Lloh13:
	ldr	x8, [x8, _x86_64_linux_binsh@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_13:
	bl	_eprintf
	b	LBB0_22
LBB0_14:
	mov	w20, #0
Lloh16:
	adrp	x8, _arm_linux_binsh@GOTPAGE
Lloh17:
	ldr	x8, [x8, _arm_linux_binsh@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	mov	w20, #0
Lloh18:
	adrp	x8, _x86_linux_binsh@GOTPAGE
Lloh19:
	ldr	x8, [x8, _x86_linux_binsh@GOTPAGEOFF]
LBB0_16:
	mov	w24, #1
	ldr	x21, [x8]
	cbz	x21, LBB0_22
LBB0_17:
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_r_buf_set_bytes
	ldr	x21, [x22]
	cbz	x21, LBB0_22
; %bb.18:
	ldrb	w8, [x21]
	cbz	w8, LBB0_22
; %bb.19:
	tbz	w24, #0, LBB0_21
; %bb.20:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_21:
	mov	x0, x21
	bl	_strlen
	add	w3, w0, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_r_buf_write_at
LBB0_22:
	ldr	x0, [x23]
	bl	_free
	ldr	x0, [x22]
	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
LBB0_23:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port"

	.comm	_suid,8,3                       ; @suid
	.comm	_x86_osx_suid_binsh,8,3         ; @x86_osx_suid_binsh
	.comm	_x86_osx_binsh,8,3              ; @x86_osx_binsh
l_.str.1:                               ; @.str.1
	.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.2:                               ; @.str.2
	.asciz	"Unsupportted\n"

	.comm	_arm_linux_binsh,8,3            ; @arm_linux_binsh
l_.str.3:                               ; @.str.3
	.asciz	"unsupported os %x\n"

	.comm	_shell,8,3                      ; @shell
l_.str.4:                               ; @.str.4
	.asciz	"Cannot set shell\n"

	.no_dead_strip	_build
.subsections_via_symbols
