	.file	"extr_device_init.c_device_service_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"can't allocate master device port"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"device"
	.text
	.p2align 4
	.globl	device_service_create
	.type	device_service_create, @function
device_service_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	ipc_port_alloc_kernel@PLT
	cmp	rax, QWORD PTR IP_NULL[rip]
	mov	QWORD PTR master_device_port[rip], rax
	mov	rdi, rax
	je	.L6
.L2:
	mov	edx, DWORD PTR IKOT_MASTER_DEVICE[rip]
	lea	rax, master_device_kobject[rip]
	lea	esi, [rax]
	call	ipc_kobject_set@PLT
	mov	rdi, QWORD PTR master_device_port[rip]
	call	ipc_port_make_send@PLT
	mov	ebp, DWORD PTR HOST_IO_MASTER_PORT[rip]
	mov	r12d, eax
	xor	eax, eax
	call	host_priv_self@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, eax
	call	kernel_set_special_port@PLT
	xor	eax, eax
	call	lck_grp_attr_alloc_init@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	mov	DWORD PTR dev_lck_grp_attr[rip], eax
	call	lck_grp_alloc_init@PLT
	mov	DWORD PTR dev_lck_grp[rip], eax
	xor	eax, eax
	call	lck_attr_alloc_init@PLT
	mov	esi, DWORD PTR dev_lck_grp[rip]
	lea	rdi, iokit_obj_to_port_binding_lock[rip]
	mov	DWORD PTR dev_lck_attr[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lck_mtx_init@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	panic@PLT
	mov	rdi, QWORD PTR master_device_port[rip]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	device_service_create, .-device_service_create
	.comm	net_thread,4,4
	.comm	master_device_port,8,8
	.comm	master_device_kobject,4,4
	.comm	kernel_task,4,4
	.comm	iokit_obj_to_port_binding_lock,4,4
	.comm	io_done_thread,4,4
	.comm	dev_lck_grp_attr,4,4
	.comm	dev_lck_grp,4,4
	.comm	dev_lck_attr,4,4
	.comm	IP_NULL,8,8
	.comm	IKOT_MASTER_DEVICE,4,4
	.comm	HOST_IO_MASTER_PORT,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_device_init.c_device_service_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't allocate master device port\000"
	.align	2
.LC1:
	.ascii	"device\000"
	.text
	.align	2
	.global	device_service_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	device_service_create, %function
device_service_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	ipc_port_alloc_kernel
	ldr	r3, .L6
	ldr	r5, .L6+4
	ldr	r3, [r3]
	str	r0, [r5]
	cmp	r0, r3
	beq	.L5
.L2:
	ldr	r3, .L6+8
	ldr	r1, .L6+12
	ldr	r2, [r3]
	bl	ipc_kobject_set
	bl	host_priv_self
	ldr	r3, .L6+16
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r5, [r3]
	bl	ipc_port_make_send
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	kernel_set_special_port
	bl	lck_grp_attr_alloc_init
	mov	r1, r0
	ldr	r3, .L6+20
	ldr	r0, .L6+24
	str	r1, [r3]
	bl	lck_grp_alloc_init
	ldr	r4, .L6+28
	str	r0, [r4]
	bl	lck_attr_alloc_init
	mov	r2, r0
	ldr	r3, .L6+32
	ldr	r1, [r4]
	ldr	r0, .L6+36
	pop	{r4, r5, r6, lr}
	str	r2, [r3]
	b	lck_mtx_init
.L5:
	ldr	r0, .L6+40
	bl	panic
	ldr	r0, [r5]
	b	.L2
.L7:
	.align	2
.L6:
	.word	IP_NULL
	.word	master_device_port
	.word	IKOT_MASTER_DEVICE
	.word	master_device_kobject
	.word	HOST_IO_MASTER_PORT
	.word	dev_lck_grp_attr
	.word	.LC1
	.word	dev_lck_grp
	.word	dev_lck_attr
	.word	iokit_obj_to_port_binding_lock
	.word	.LC0
	.size	device_service_create, .-device_service_create
	.comm	net_thread,4,4
	.comm	master_device_port,4,4
	.comm	master_device_kobject,4,4
	.comm	kernel_task,4,4
	.comm	iokit_obj_to_port_binding_lock,4,4
	.comm	io_done_thread,4,4
	.comm	dev_lck_grp_attr,4,4
	.comm	dev_lck_grp,4,4
	.comm	dev_lck_attr,4,4
	.comm	IP_NULL,4,4
	.comm	IKOT_MASTER_DEVICE,4,4
	.comm	HOST_IO_MASTER_PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
