	.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_10
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_14
LBB0_3:
	cmpl	$129, 8(%rbx)
	jne	LBB0_17
## %bb.4:
	movq	_armle_osx_reverse@GOTPCREL(%rip), %rax
	movl	$43, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_10:
	cmpl	$128, 8(%rbx)
	jne	LBB0_17
## %bb.11:
	cmpl	$32, 4(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	_x86_freebsd_reverse@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movb	$1, %r12b
LBB0_5:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.6:
	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_17
## %bb.7:
	cmpb	$0, (%rbx)
	je	LBB0_17
## %bb.8:
	testb	%r12b, %r12b
	je	LBB0_9
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_17
LBB0_9:
	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
LBB0_17:
	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	_armle_osx_reverse,8,3          ## @armle_osx_reverse
	.comm	_x86_freebsd_reverse,8,3        ## @x86_freebsd_reverse
L_.str.1:                               ## @.str.1
	.asciz	"Unsupportted\n"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported os %x\n"

	.comm	_shell,8,3                      ## @shell
L_.str.3:                               ## @.str.3
	.asciz	"Cannot set shell\n"

	.comm	_suid,8,3                       ## @suid
	.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	x22, _shell@GOTPAGE
Lloh3:
	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, #129
	b.ne	LBB0_15
; %bb.4:
	mov	w23, #0
Lloh4:
	adrp	x8, _armle_osx_reverse@GOTPAGE
Lloh5:
	ldr	x8, [x8, _armle_osx_reverse@GOTPAGEOFF]
	mov	w20, #43
Lloh6:
	ldr	x21, [x8]
	cbnz	x21, LBB0_8
	b	LBB0_15
LBB0_5:
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.6:
	ldr	w8, [x20, #4]
	cmp	w8, #32
	b.ne	LBB0_13
; %bb.7:
	mov	w20, #0
Lloh7:
	adrp	x8, _x86_freebsd_reverse@GOTPAGE
Lloh8:
	ldr	x8, [x8, _x86_freebsd_reverse@GOTPAGEOFF]
	mov	w23, #1
Lloh9:
	ldr	x21, [x8]
	cbz	x21, LBB0_15
LBB0_8:
	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_15
; %bb.9:
	ldrb	w8, [x21]
	cbz	w8, LBB0_15
; %bb.10:
	tbz	w23, #0, LBB0_16
; %bb.11:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_12:
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_eprintf
LBB0_15:
Lloh16:
	adrp	x8, _suid@GOTPAGE
Lloh17:
	ldr	x8, [x8, _suid@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	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_16:
	mov	x0, x21
	bl	_strlen
	add	w3, w0, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_r_buf_write_at
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port"

	.comm	_armle_osx_reverse,8,3          ; @armle_osx_reverse
	.comm	_x86_freebsd_reverse,8,3        ; @x86_freebsd_reverse
l_.str.1:                               ; @.str.1
	.asciz	"Unsupportted\n"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported os %x\n"

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

	.comm	_suid,8,3                       ; @suid
	.no_dead_strip	_build
.subsections_via_symbols
