	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_fill_in_gnu_debuglink_section ## -- Begin function bfd_fill_in_gnu_debuglink_section
	.p2align	4, 0x90
_bfd_fill_in_gnu_debuglink_section:     ## @bfd_fill_in_gnu_debuglink_section
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.5:
	movq	%rdi, %r15
	movq	_FOPEN_RB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_real_fopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r13
	leaq	_bfd_fill_in_gnu_debuglink_section.buffer(%rip), %rdi
	movl	$1, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	movq	%rax, %rcx
	callq	_fread
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.9:
	xorl	%ebx, %ebx
	leaq	_bfd_fill_in_gnu_debuglink_section.buffer(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_bfd_calc_gnu_debuglink_crc32
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	movq	%r13, %rcx
	callq	_fread
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_3:
	movq	_bfd_error_invalid_operation@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_bfd_error_system_call@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r13, %rdi
	callq	_fclose
	movq	%r12, %rdi
	callq	_lbasename
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %r13d
	addl	$4, %r13d
	andl	$-4, %r13d
	leal	4(%r13), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_bfd_zmalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movslq	%r13d, %rdx
	addq	%r12, %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bfd_put_32
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_bfd_set_section_contents
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movq	_bfd_error_no_memory@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_bfd_set_error
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_bfd_fill_in_gnu_debuglink_section.buffer,8192,4 ## @bfd_fill_in_gnu_debuglink_section.buffer
	.comm	_bfd_error_invalid_operation,4,2 ## @bfd_error_invalid_operation
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_FOPEN_RB,4,2                   ## @FOPEN_RB
	.comm	_bfd_error_system_call,4,2      ## @bfd_error_system_call
	.comm	_bfd_error_no_memory,4,2        ## @bfd_error_no_memory
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_fill_in_gnu_debuglink_section ; -- Begin function bfd_fill_in_gnu_debuglink_section
	.p2align	2
_bfd_fill_in_gnu_debuglink_section:     ; @bfd_fill_in_gnu_debuglink_section
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _FOPEN_RB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FOPEN_RB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_real_fopen
	cbz	x0, LBB0_8
; %bb.4:
	mov	x23, x0
Lloh3:
	adrp	x0, _bfd_fill_in_gnu_debuglink_section.buffer@PAGE
Lloh4:
	add	x0, x0, _bfd_fill_in_gnu_debuglink_section.buffer@PAGEOFF
	mov	w1, #1
	mov	w2, #8192
	mov	x3, x23
	bl	_fread
	cbz	x0, LBB0_9
; %bb.5:
	mov	x2, x0
	mov	x22, #0
Lloh5:
	adrp	x24, _bfd_fill_in_gnu_debuglink_section.buffer@PAGE
Lloh6:
	add	x24, x24, _bfd_fill_in_gnu_debuglink_section.buffer@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_bfd_calc_gnu_debuglink_crc32
	mov	x22, x0
	mov	x0, x24
	mov	w1, #1
	mov	w2, #8192
	mov	x3, x23
	bl	_fread
	mov	x2, x0
	cbnz	x0, LBB0_6
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _bfd_error_invalid_operation@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bfd_error_invalid_operation@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh9:
	adrp	x8, _bfd_error_system_call@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bfd_error_system_call@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x23
	bl	_fclose
	mov	x0, x21
	bl	_lbasename
	mov	x24, x0
	bl	_strlen
	add	w8, w0, #4
	and	w25, w8, #0xfffffffc
	add	w23, w25, #4
	mov	x0, x23
	bl	_bfd_zmalloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x21, x0
	mov	x1, x24
	bl	_strcpy
	add	x2, x21, w25, sxtw
	mov	x0, x20
	mov	x1, x22
	bl	_bfd_put_32
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	mov	x4, x23
	bl	_bfd_set_section_contents
	cbz	w0, LBB0_17
; %bb.12:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh13:
	adrp	x8, _bfd_error_no_memory@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bfd_error_no_memory@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_15:
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x0, x21
	bl	_free
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_bfd_fill_in_gnu_debuglink_section.buffer,8192,0 ; @bfd_fill_in_gnu_debuglink_section.buffer
	.comm	_bfd_error_invalid_operation,4,2 ; @bfd_error_invalid_operation
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_FOPEN_RB,4,2                   ; @FOPEN_RB
	.comm	_bfd_error_system_call,4,2      ; @bfd_error_system_call
	.comm	_bfd_error_no_memory,4,2        ; @bfd_error_no_memory
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
