	.file	"extr_port.c_sci_port_is_phy_mask_valid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sci_port_is_phy_mask_valid, @function
sci_port_is_phy_mask_valid:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jne	.L2
	mov	edx, esi
	mov	eax, 1
	and	edx, 15
	cmp	edx, 15
	je	.L1
	mov	edx, esi
	and	edx, 3
	cmp	edx, 3
	je	.L1
	test	esi, esi
	sete	al
	or	esi, eax
	mov	eax, esi
	and	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, esi
	mov	eax, 1
	and	edx, 12
	cmp	edx, 12
	je	.L1
	mov	eax, esi
	shr	eax, 2
.L13:
	test	esi, esi
	sete	sil
	or	esi, eax
	mov	eax, esi
	and	eax, 1
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, esi
	shr	eax
	cmp	edx, 1
	je	.L13
	cmp	edx, 2
	je	.L15
	xor	eax, eax
	cmp	edx, 3
	jne	.L1
	mov	eax, esi
	shr	eax, 3
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	sci_port_is_phy_mask_valid, .-sci_port_is_phy_mask_valid
	.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_port.c_sci_port_is_phy_mask_valid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sci_port_is_phy_mask_valid, %function
sci_port_is_phy_mask_valid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L2
	and	r3, r1, #15
	cmp	r3, #15
	beq	.L8
	and	r3, r1, #3
	cmp	r3, #3
	beq	.L8
	cmp	r1, #0
	moveq	r0, #1
	andne	r0, r1, #1
	bx	lr
.L8:
	mov	r0, #1
	bx	lr
.L2:
	cmp	r3, #1
	beq	.L11
	cmp	r3, #2
	beq	.L12
	cmp	r3, #3
	beq	.L13
	mov	r0, #0
	bx	lr
.L13:
	lsr	r0, r1, #3
	cmp	r1, #0
	moveq	r0, #1
	andne	r0, r0, #1
	bx	lr
.L11:
	lsr	r0, r1, #1
	cmp	r1, #0
	moveq	r0, #1
	andne	r0, r0, #1
	bx	lr
.L12:
	and	r3, r1, #12
	cmp	r3, #12
	beq	.L8
	lsr	r0, r1, #2
	cmp	r1, #0
	moveq	r0, #1
	andne	r0, r0, #1
	bx	lr
	.size	sci_port_is_phy_mask_valid, .-sci_port_is_phy_mask_valid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
