	.file	"extr_46297.c_xpc_checkin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"port allocation failed: %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"port right insertion failed: %s\n"
	.section	.rodata.str1.1
.LC2:
	.string	"w00t message send failed: %s\n"
.LC3:
	.string	"sent xpc w00t message"
	.text
	.p2align 4
	.type	xpc_checkin, @function
xpc_checkin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 96
	.cfi_def_cfa_offset 144
	mov	r13d, DWORD PTR MACH_PORT_RIGHT_RECEIVE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	mach_task_self@PLT
	mov	rdx, rbx
	mov	esi, r13d
	mov	edi, eax
	call	mach_port_allocate@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	je	.L2
	mov	rdi, rax
	call	mach_error_string@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L2:
	mov	r13, QWORD PTR [rbx]
	mov	r14d, DWORD PTR MACH_MSG_TYPE_MAKE_SEND[rip]
	xor	eax, eax
	call	mach_task_self@PLT
	mov	edi, eax
	mov	ecx, r14d
	mov	rdx, r13
	mov	rsi, r13
	call	mach_port_insert_right@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	mov	rdi, rax
	je	.L3
	call	mach_error_string@PLT
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L3:
	mov	r13d, DWORD PTR MACH_PORT_RIGHT_RECEIVE[rip]
	xor	eax, eax
	call	mach_task_self@PLT
	mov	rdx, rbp
	mov	edi, eax
	mov	esi, r13d
	call	mach_port_allocate@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	mov	rdi, rax
	je	.L4
	call	mach_error_string@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L4:
	mov	r13, rsp
	xor	esi, esi
	mov	edx, 80
	mov	rdi, r13
	call	memset@PLT
	mov	ecx, DWORD PTR MACH_MSGH_BITS_COMPLEX[rip]
	xor	edx, edx
	xor	esi, esi
	mov	edi, DWORD PTR MACH_MSG_TYPE_COPY_SEND[rip]
	call	MACH_MSGH_BITS_SET@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[rsp], r12
	xor	ecx, ecx
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR [rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rdi, r13
	mov	QWORD PTR 48[rsp], rdx
	mov	edx, DWORD PTR MACH_MSG_TYPE_MAKE_SEND[rip]
	mov	QWORD PTR 72[rsp], rax
	mov	eax, DWORD PTR MACH_MSG_TYPE_MOVE_RECEIVE[rip]
	mov	r8d, DWORD PTR MACH_PORT_NULL[rip]
	mov	DWORD PTR 40[rsp], edx
	mov	edx, 80
	mov	DWORD PTR 64[rsp], eax
	mov	rax, QWORD PTR MACH_MSG_PORT_DESCRIPTOR[rip]
	mov	DWORD PTR 8[rsp], 80
	mov	r9d, DWORD PTR MACH_MSG_TIMEOUT_NONE[rip]
	mov	BYTE PTR 12[rsp], 116
	mov	esi, DWORD PTR MACH_SEND_MSG[rip]
	mov	DWORD PTR 80[rsp], 2
	or	esi, DWORD PTR MACH_MSG_OPTION_NONE[rip]
	mov	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 32[rsp], rax
	push	r8
	.cfi_def_cfa_offset 160
	call	mach_msg@PLT
	mov	rdi, rax
	cmp	QWORD PTR KERN_SUCCESS[rip], rdi
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	je	.L5
	call	mach_error_string@PLT
	lea	rdi, .LC2[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xpc_checkin, .-xpc_checkin
	.comm	MACH_SEND_MSG,4,4
	.comm	MACH_PORT_RIGHT_RECEIVE,4,4
	.comm	MACH_PORT_NULL,4,4
	.comm	MACH_MSG_TYPE_MOVE_RECEIVE,4,4
	.comm	MACH_MSG_TYPE_MAKE_SEND,4,4
	.comm	MACH_MSG_TYPE_COPY_SEND,4,4
	.comm	MACH_MSG_TIMEOUT_NONE,4,4
	.comm	MACH_MSG_PORT_DESCRIPTOR,8,8
	.comm	MACH_MSG_OPTION_NONE,4,4
	.comm	MACH_MSGH_BITS_COMPLEX,4,4
	.comm	KERN_SUCCESS,8,8
	.comm	EXIT_FAILURE,4,4
	.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_xpc_checkin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"port allocation failed: %s\012\000"
	.align	2
.LC1:
	.ascii	"port right insertion failed: %s\012\000"
	.align	2
.LC2:
	.ascii	"w00t message send failed: %s\012\000"
	.align	2
.LC3:
	.ascii	"sent xpc w00t message\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xpc_checkin, %function
xpc_checkin:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r3, .L11
	ldr	r7, .L11+4
	sub	sp, sp, #68
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	mov	r6, r2
	mov	fp, r0
	bl	mach_task_self
	mov	r2, r4
	ldr	r1, [r7]
	bl	mach_port_allocate
	ldr	r5, .L11+8
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L2
	bl	mach_error_string
	mov	r1, r0
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, .L11+16
	ldr	r0, [r3]
	bl	exit
.L2:
	bl	mach_task_self
	ldr	r8, .L11+20
	ldr	r2, [r4]
	ldr	r3, [r8]
	mov	r1, r2
	bl	mach_port_insert_right
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L3
	bl	mach_error_string
	mov	r1, r0
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, .L11+16
	ldr	r0, [r3]
	bl	exit
.L3:
	bl	mach_task_self
	mov	r2, r6
	ldr	r1, [r7]
	bl	mach_port_allocate
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L4
	bl	mach_error_string
	mov	r1, r0
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, .L11+16
	ldr	r0, [r3]
	bl	exit
.L4:
	mov	r7, #44
	mov	r1, #0
	mov	r2, r7
	add	r0, sp, #16
	bl	memset
	mov	r2, #0
	ldr	r3, .L11+28
	ldr	r0, .L11+32
	mov	r1, r2
	ldr	r3, [r3]
	ldr	r0, [r0]
	bl	MACH_MSGH_BITS_SET
	ldr	ip, [r8]
	mov	r9, r0
	str	ip, [sp, #36]
	mov	ip, #116
	strb	ip, [sp, #20]
	mov	ip, #2
	ldr	r1, .L11+36
	ldr	r2, .L11+40
	ldr	r3, .L11+44
	ldr	r10, [r1]
	ldr	r1, [r2]
	ldr	r2, .L11+48
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	lr, [r6]
	ldr	r4, [r4]
	ldr	r6, .L11+52
	str	r3, [sp, #8]
	str	r3, [sp]
	ldr	r3, .L11+56
	str	r2, [sp, #4]
	ldr	r8, [r3]
	ldr	r6, [r6]
	mov	r3, #0
	mov	r2, r7
	add	r0, sp, #16
	orr	r1, r10, r1
	str	r7, [sp, #16]
	str	r9, [sp, #28]
	str	r4, [sp, #52]
	str	lr, [sp, #40]
	str	fp, [sp, #24]
	str	r6, [sp, #48]
	str	r8, [sp, #44]
	str	r8, [sp, #32]
	str	ip, [sp, #56]
	bl	mach_msg
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L5
	bl	mach_error_string
	mov	r1, r0
	ldr	r0, .L11+60
	bl	printf
	ldr	r3, .L11+16
	ldr	r0, [r3]
	bl	exit
.L6:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, #1
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r0, .L11+64
	bl	puts
	b	.L6
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	MACH_PORT_RIGHT_RECEIVE
	.word	KERN_SUCCESS
	.word	.LC0
	.word	EXIT_FAILURE
	.word	MACH_MSG_TYPE_MAKE_SEND
	.word	.LC1
	.word	MACH_MSGH_BITS_COMPLEX
	.word	MACH_MSG_TYPE_COPY_SEND
	.word	MACH_SEND_MSG
	.word	MACH_MSG_OPTION_NONE
	.word	MACH_PORT_NULL
	.word	MACH_MSG_TIMEOUT_NONE
	.word	MACH_MSG_TYPE_MOVE_RECEIVE
	.word	MACH_MSG_PORT_DESCRIPTOR
	.word	.LC2
	.word	.LC3
	.size	xpc_checkin, .-xpc_checkin
	.comm	MACH_SEND_MSG,4,4
	.comm	MACH_PORT_RIGHT_RECEIVE,4,4
	.comm	MACH_PORT_NULL,4,4
	.comm	MACH_MSG_TYPE_MOVE_RECEIVE,4,4
	.comm	MACH_MSG_TYPE_MAKE_SEND,4,4
	.comm	MACH_MSG_TYPE_COPY_SEND,4,4
	.comm	MACH_MSG_TIMEOUT_NONE,4,4
	.comm	MACH_MSG_PORT_DESCRIPTOR,4,4
	.comm	MACH_MSG_OPTION_NONE,4,4
	.comm	MACH_MSGH_BITS_COMPLEX,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
