	.file	"extr_46297.c_lookup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unable to look up %s\n"
.LC1:
	.string	"bad service port"
	.text
	.p2align 4
	.type	lookup, @function
lookup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rsi, rdi
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR bootstrap_port[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR MACH_PORT_NULL[rip]
	mov	rdx, rsp
	mov	QWORD PTR [rsp], rax
	call	bootstrap_look_up@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	jne	.L7
	mov	rax, QWORD PTR [rsp]
	cmp	rax, QWORD PTR MACH_PORT_NULL[rip]
	je	.L8
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rax, QWORD PTR MACH_PORT_NULL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR MACH_PORT_NULL[rip]
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lookup, .-lookup
	.comm	bootstrap_port,4,4
	.comm	MACH_PORT_NULL,8,8
	.comm	KERN_SUCCESS,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_46297.c_lookup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to look up %s\012\000"
	.align	2
.LC1:
	.ascii	"bad service port\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lookup, %function
lookup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L10
	ldr	r2, .L10+4
	sub	sp, sp, #12
	ldr	r3, [r5]
	ldr	ip, .L10+8
	mov	r1, r0
	mov	r4, r0
	ldr	r0, [r2]
	mov	r2, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r3, [sp]
	bl	bootstrap_look_up
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L7
	ldr	r0, [sp]
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L8
.L1:
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r1, r4
	ldr	r0, .L10+16
	bl	printf
	ldr	r0, [r5]
	b	.L1
.L8:
	ldr	r0, .L10+20
	bl	puts
	ldr	r0, [r5]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MACH_PORT_NULL
	.word	bootstrap_port
	.word	.LC2
	.word	KERN_SUCCESS
	.word	.LC0
	.word	.LC1
	.size	lookup, .-lookup
	.comm	bootstrap_port,4,4
	.comm	MACH_PORT_NULL,4,4
	.comm	KERN_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
