	.file	"extr_gssmask.c_create_client.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gssmask: %s:%d"
.LC1:
	.string	"krb5_storage_from_fd"
	.text
	.p2align 4
	.type	create_client, @function
create_client:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15d, esi
	mov	esi, 32
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	.cfi_offset 13, -40
	mov	r13d, edi
	mov	edi, 1
	push	r12
	sub	rsp, 16
	.cfi_offset 12, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	ecalloc@PLT
	mov	r12, rax
	test	r14, r14
	je	.L2
	mov	rdi, r14
	call	estrdup@PLT
	mov	DWORD PTR 24[r12], eax
.L3:
	mov	DWORD PTR [r12], 4
	lea	r14, 20[r12]
	mov	rdx, r12
	mov	edi, r13d
	mov	rsi, r14
	call	getpeername@PLT
	sub	rsp, 8
	xor	r9d, r9d
	xor	r8d, r8d
	mov	eax, DWORD PTR NI_NUMERICHOST[rip]
	mov	edx, DWORD PTR 16[r12]
	mov	ecx, 4
	mov	rdi, r14
	push	rax
	mov	esi, DWORD PTR [r12]
	call	getnameinfo@PLT
	mov	edi, r13d
	call	krb5_storage_from_fd@PLT
	mov	QWORD PTR 8[r12], rax
	pop	rdx
	pop	rcx
	test	rax, rax
	je	.L14
.L7:
	mov	edi, r13d
	call	close@PLT
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -32[rbp]
	mov	rax, r12
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movsx	rax, DWORD PTR MAXHOSTNAMELEN[rip]
	mov	rcx, rsp
	mov	r14, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L5
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L5:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L6:
	mov	rdi, rsp
	call	gethostname@PLT
	mov	rdx, rsp
	lea	rdi, 24[r12]
	mov	ecx, r15d
	lea	rsi, .LC0[rip]
	call	asprintf@PLT
	mov	rsp, r14
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	errx@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_client, .-create_client
	.comm	NI_NUMERICHOST,4,4
	.comm	MAXHOSTNAMELEN,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_gssmask.c_create_client.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gssmask: %s:%d\000"
	.align	2
.LC1:
	.ascii	"krb5_storage_from_fd\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_client, %function
create_client:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #28
	ldr	r3, .L10
	mov	r6, r2
	mov	r5, r0
	mov	r7, r1
	mov	r0, #1
	mov	r1, #20
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	ecalloc
	cmp	r6, #0
	mov	r4, r0
	beq	.L2
	mov	r0, r6
	bl	estrdup
	str	r0, [r4, #16]
.L3:
	mov	r6, r4
	mov	r7, #4
	str	r7, [r6], #12
	mov	r1, r6
	mov	r2, r4
	mov	r0, r5
	bl	getpeername
	mov	ip, #0
	ldr	r3, .L10+4
	ldr	r2, [r4, #8]
	ldr	lr, [r3]
	ldr	r1, [r4]
	mov	r3, r7
	stmib	sp, {ip, lr}
	str	ip, [sp]
	mov	r0, r6
	bl	getnameinfo
	mov	r0, r5
	bl	krb5_storage_from_fd
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L8
.L4:
	mov	r0, r5
	bl	close
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L2:
	mov	r8, sp
	ldr	r3, .L10+8
	ldr	r1, [r3]
	add	r3, r1, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r6, sp, #16
	mov	r0, r6
	bl	gethostname
	mov	r3, r7
	mov	r2, r6
	ldr	r1, .L10+12
	add	r0, r4, #16
	bl	asprintf
	mov	sp, r8
	b	.L3
.L8:
	ldr	r1, .L10+16
	mov	r0, #1
	bl	errx
	b	.L4
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	NI_NUMERICHOST
	.word	MAXHOSTNAMELEN
	.word	.LC0
	.word	.LC1
	.size	create_client, .-create_client
	.comm	NI_NUMERICHOST,4,4
	.comm	MAXHOSTNAMELEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
