	.file	"extr_geom_dev.c_g_dev_set_physpath.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GEOM::physpath"
	.text
	.p2align 4
	.type	g_dev_set_physpath, @function
g_dev_set_physpath:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	g_access@PLT
	test	rax, rax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR MAXPATHLEN[rip]
	mov	esi, DWORD PTR M_WAITOK[rip]
	or	esi, DWORD PTR M_ZERO[rip]
	mov	r13, QWORD PTR 0[rbp]
	mov	DWORD PTR 4[rsp], edi
	call	g_malloc@PLT
	lea	rdx, 4[rsp]
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	mov	rcx, rax
	mov	r12, rax
	call	g_io_getattr@PLT
	mov	rdi, rbp
	xor	ecx, ecx
	xor	edx, edx
	mov	ebx, eax
	mov	esi, -1
	call	g_access@PLT
	mov	rdi, QWORD PTR 0[r13]
	test	ebx, ebx
	jne	.L5
	cmp	BYTE PTR [r12], 0
	jne	.L15
.L5:
	test	rdi, rdi
	je	.L6
	call	destroy_dev@PLT
	mov	QWORD PTR 0[r13], 0
.L6:
	mov	rdi, r12
	call	g_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, rdi
	mov	rdx, QWORD PTR 8[r13]
	mov	edi, DWORD PTR MAKEDEV_WAITOK[rip]
	mov	r8, r12
	mov	rsi, r13
	call	make_dev_physpath_alias@PLT
	jmp	.L6
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	g_dev_set_physpath, .-g_dev_set_physpath
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	MAXPATHLEN,4,4
	.comm	MAKEDEV_WAITOK,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_geom_dev.c_g_dev_set_physpath.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GEOM::physpath\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_dev_set_physpath, %function
g_dev_set_physpath:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L19
	sub	sp, sp, #16
	mov	r2, r3
	mov	r1, #1
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r5, r0
	bl	g_access
	subs	r4, r0, #0
	beq	.L16
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r2, .L19+4
	ldr	r1, .L19+8
	ldr	r3, .L19+12
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r8, [r5]
	orr	r1, r1, r3
	str	r0, [sp, #8]
	bl	g_malloc
	mov	r1, r5
	mov	r3, r0
	add	r2, sp, #8
	mov	r6, r0
	ldr	r0, .L19+16
	bl	g_io_getattr
	mov	r7, r0
	mov	r3, r4
	mov	r0, r5
	mov	r2, r4
	mvn	r1, #0
	bl	g_access
	cmp	r7, #0
	bne	.L4
	ldrb	r3, [r6]	@ zero_extendqisi2
	ldr	r0, [r8]
	cmp	r3, #0
	bne	.L18
.L5:
	cmp	r0, #0
	beq	.L6
	bl	destroy_dev
	mov	r3, #0
	str	r3, [r8]
.L6:
	mov	r0, r6
	bl	g_free
	b	.L1
.L4:
	ldr	r0, [r8]
	b	.L5
.L18:
	ldr	ip, .L19+20
	ldr	r2, [r8, #4]
	str	r6, [sp]
	mov	r3, r0
	mov	r1, r8
	ldr	r0, [ip]
	bl	make_dev_physpath_alias
	b	.L6
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	M_WAITOK
	.word	MAXPATHLEN
	.word	M_ZERO
	.word	.LC0
	.word	MAKEDEV_WAITOK
	.size	g_dev_set_physpath, .-g_dev_set_physpath
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	MAXPATHLEN,4,4
	.comm	MAKEDEV_WAITOK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
