	.file	"extr_zfcp_fc.c_zfcp_fc_sg_setup_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zfcp_fc_sg_setup_table, @function
zfcp_fc_sg_setup_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	sg_init_table@PLT
	test	ebx, ebx
	jle	.L2
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbp
	add	r12d, 1
	call	sg_set_buf@PLT
	mov	rdi, rbp
	call	sg_next@PLT
	mov	rbp, rax
	cmp	ebx, r12d
	je	.L2
.L5:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	get_zeroed_page@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L3
	mov	esi, r12d
	mov	rdi, rbp
	call	zfcp_fc_sg_free_table@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	zfcp_fc_sg_setup_table, .-zfcp_fc_sg_setup_table
	.comm	PAGE_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_zfcp_fc.c_zfcp_fc_sg_setup_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfcp_fc_sg_setup_table, %function
zfcp_fc_sg_setup_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	bl	sg_init_table
	cmp	r6, #0
	ble	.L2
	mov	r5, #0
	ldr	r7, .L9
	ldr	r8, .L9+4
	b	.L5
.L3:
	mov	r0, r4
	ldr	r2, [r8]
	bl	sg_set_buf
	mov	r0, r4
	bl	sg_next
	add	r5, r5, #1
	cmp	r6, r5
	mov	r4, r0
	beq	.L2
.L5:
	ldr	r0, [r7]
	bl	get_zeroed_page
	subs	r1, r0, #0
	bne	.L3
	mov	r1, r5
	mov	r0, r4
	bl	zfcp_fc_sg_free_table
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	PAGE_SIZE
	.word	ENOMEM
	.size	zfcp_fc_sg_setup_table, .-zfcp_fc_sg_setup_table
	.comm	PAGE_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
