	.file	"extr_bthost.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bhp"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rdx, .LC0[rip]
	mov	rsi, rbp
	mov	edi, ebx
	call	getopt@PLT
	cmp	eax, -1
	je	.L12
	cmp	eax, 98
	je	.L8
	cmp	eax, 112
	je	.L9
	xor	eax, eax
	call	usage@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r13d, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR optind[rip]
	sub	ebx, eax
	lea	rbp, 0[rbp+rax*8]
	test	ebx, ebx
	jle	.L13
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, r13d
	test	r12d, r12d
	jne	.L14
	call	hostmode@PLT
	mov	edi, eax
.L7:
	call	exit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	protomode@PLT
	mov	edi, eax
	jmp	.L7
.L13:
	xor	eax, eax
	call	usage@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	optind,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bthost.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bhp\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	mov	r4, r0
	mov	r5, r1
	mov	r8, r7
	ldr	r6, .L15
.L2:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	getopt
	cmn	r0, #1
	beq	.L12
	cmp	r0, #98
	moveq	r8, #1
	beq	.L2
	cmp	r0, #112
	moveq	r7, #1
	beq	.L2
	bl	usage
	b	.L2
.L12:
	ldr	r3, .L15+4
	ldr	r6, [r3]
	sub	r4, r4, r6
	cmp	r4, #0
	ble	.L13
.L5:
	cmp	r7, #0
	mov	r1, r8
	ldr	r0, [r5, r6, lsl #2]
	bne	.L14
	bl	hostmode
.L7:
	bl	exit
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	protomode
	b	.L7
.L13:
	bl	usage
	b	.L5
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	optind
	.size	main, .-main
	.comm	optind,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
