	.file	"extr_sdio_uart.c_sdio_uart_claim_func.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdio_uart_claim_func, @function
sdio_uart_claim_func:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 12[rbx]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L10
	xor	edi, edi
	mov	rax, QWORD PTR current[rip]
	cmp	QWORD PTR [rbx], rax
	setne	dil
	call	likely@PLT
	test	rax, rax
	jne	.L11
.L4:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	call	sdio_claim_host@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	sdio_uart_claim_func, .-sdio_uart_claim_func
	.comm	current,8,8
	.comm	ENODEV,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_sdio_uart.c_sdio_uart_claim_func.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdio_uart_claim_func, %function
sdio_uart_claim_func:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	add	r6, r0, #4
	mov	r0, r6
	bl	mutex_lock
	ldr	r0, [r5, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r4, r0, #0
	bne	.L10
	ldr	r3, .L12
	ldr	r0, [r5]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	likely
	cmp	r0, #0
	bne	.L11
.L4:
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, [r5, #8]
	bl	sdio_claim_host
	b	.L4
.L10:
	mov	r0, r6
	bl	mutex_unlock
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	current
	.word	ENODEV
	.size	sdio_uart_claim_func, .-sdio_uart_claim_func
	.comm	current,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
