	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_dll_generate_implib         ## -- Begin function pe_dll_generate_implib
	.p2align	4, 0x90
_pe_dll_generate_implib:                ## @pe_dll_generate_implib
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_dll_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_2:
	movq	_dll_filename@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	callq	_xstrdup
	movq	_dll_symname@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movzbl	1(%rax,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_ISALNUM
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movb	$95, (%rax,%rbx)
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_unlink_if_ordinary
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_bfd_openw
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_info_msg
	movq	_bfd_archive@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bfd_set_format
	movl	$1, (%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_make_head
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.10:
	xorl	%r12d, %r12d
	movq	_pe_def_file@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	movslq	%ecx, %rax
	addq	$24, %r12
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%r15,8)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	leaq	(%rax,%r12), %rdi
	movq	(%rax,%r12), %rbx
	movq	8(%rax,%r12), %rcx
	movq	%rcx, (%rax,%r12)
	xorl	%edx, %edx
	cmpl	$0, 16(%rax,%r12)
	sete	%dl
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_make_one
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	8(%r13), %rcx
	movq	%rbx, (%rcx,%r12)
	movl	(%r13), %ecx
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_22:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_einfo                          ## TAILCALL
LBB0_9:
	xorl	%ebx, %ebx
LBB0_14:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_make_tail
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	testq	%r14, %r14
	je	LBB0_21
## %bb.16:
	movq	%rbx, 8(%rax)
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bfd_set_archive_head
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_einfo
LBB0_18:
	movq	%r15, %rdi
	callq	_bfd_close
	testl	%eax, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_einfo
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rbx
	movq	%r14, %rdi
	callq	_bfd_close
	movq	%rbx, %r14
	testq	%rbx, %rbx
	jne	LBB0_20
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dll_name,8,3                   ## @dll_name
	.comm	_dll_filename,8,3               ## @dll_filename
	.comm	_dll_symname,8,3                ## @dll_symname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%XCan't open .lib file: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Creating library file: %s\n"

	.comm	_bfd_archive,4,2                ## @bfd_archive
	.comm	_pe_def_file,8,3                ## @pe_def_file
L_.str.2:                               ## @.str.2
	.asciz	"%Xbfd_set_archive_head: %E\n"

L_.str.3:                               ## @.str.3
	.asciz	"%Xbfd_close %s: %E\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_dll_generate_implib         ; -- Begin function pe_dll_generate_implib
	.p2align	2
_pe_dll_generate_implib:                ; @pe_dll_generate_implib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _dll_name@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dll_name@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x0, x9, x8, eq
Lloh3:
	adrp	x8, _dll_filename@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dll_filename@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
	bl	_xstrdup
Lloh6:
	adrp	x21, _dll_symname@GOTPAGE
Lloh7:
	ldr	x21, [x21, _dll_symname@GOTPAGEOFF]
	str	x0, [x21]
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x22, #0
	mov	w23, #95
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22
	add	x22, x22, #1
	ldrb	w8, [x8, #1]
	cbz	w8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_ISALNUM
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	strb	w23, [x8, x22]
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	bl	_unlink_if_ordinary
	mov	x0, x19
	mov	w1, #0
	bl	_bfd_openw
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_info_msg
Lloh10:
	adrp	x8, _bfd_archive@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bfd_archive@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bfd_set_format
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x21
	bl	_make_head
	mov	x22, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x24, #0
	mov	x25, #0
	mov	x23, #0
Lloh13:
	adrp	x26, _pe_def_file@GOTPAGE
Lloh14:
	ldr	x26, [x26, _pe_def_file@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	add	x24, x24, #24
	cmp	x25, w8, sxtw
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	ldr	x9, [x9]
	ldr	x9, [x9, x25, lsl #3]
	cbnz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x24
	ldp	x27, x8, [x0]
	str	x8, [x0]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	cset	w2, eq
	mov	x1, x21
	bl	_make_one
	str	x23, [x0, #8]
	ldr	x8, [x20, #8]
	str	x27, [x8, x24]
	ldr	w8, [x20]
	mov	x23, x0
	b	LBB0_8
LBB0_11:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	str	x19, [sp]
	bl	_einfo
	b	LBB0_20
LBB0_12:
	mov	x23, #0
LBB0_13:
	mov	x0, x21
	bl	_make_tail
	cbz	x22, LBB0_20
; %bb.14:
	mov	x20, x0
	cbz	x0, LBB0_20
; %bb.15:
	str	x23, [x22, #8]
	str	x22, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_bfd_set_archive_head
	cbnz	w0, LBB0_17
; %bb.16:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_einfo
LBB0_17:
	mov	x0, x21
	bl	_bfd_close
	cbnz	w0, LBB0_19
; %bb.18:
	str	x19, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_einfo
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x20, #8]
	mov	x0, x20
	bl	_bfd_close
	mov	x20, x19
	cbnz	x19, LBB0_19
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_dll_name,8,3                   ; @dll_name
	.comm	_dll_filename,8,3               ; @dll_filename
	.comm	_dll_symname,8,3                ; @dll_symname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%XCan't open .lib file: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Creating library file: %s\n"

	.comm	_bfd_archive,4,2                ; @bfd_archive
	.comm	_pe_def_file,8,3                ; @pe_def_file
l_.str.2:                               ; @.str.2
	.asciz	"%Xbfd_set_archive_head: %E\n"

l_.str.3:                               ; @.str.3
	.asciz	"%Xbfd_close %s: %E\n"

.subsections_via_symbols
