	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coff_swap_scnhdr_out
_coff_swap_scnhdr_out:                  ## @coff_swap_scnhdr_out
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_bfd_coff_scnhsz
	movl	%eax, %r13d
	movq	(%r14), %rdi
	movl	20(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	48(%rbx), %esi
	movl	44(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_VADDR
	movl	44(%rbx), %esi
	movl	40(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_PADDR
	movl	40(%rbx), %esi
	movl	36(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_SIZE
	movl	36(%rbx), %esi
	movl	32(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_SCNPTR
	movl	32(%rbx), %esi
	movl	28(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_RELPTR
	movl	28(%rbx), %esi
	movl	24(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_LNNOPTR
	movl	24(%rbx), %esi
	movl	20(%r14), %edx
	movq	%r15, %rdi
	callq	_PUT_SCNHDR_FLAGS
	movq	(%rbx), %rsi
	movq	_MAX_SCNHDR_NLNNO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jle	LBB0_1
## %bb.2:
	movl	20(%rbx), %esi
	leaq	-45(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movb	$0, -41(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_bfd_get_filename
	movl	(%rbx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	leaq	-45(%rbp), %rdx
	callq	__bfd_error_handler
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	jmp	LBB0_3
LBB0_1:
	movl	16(%r14), %edx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_3:
	callq	_PUT_SCNHDR_NLNNO
	movq	8(%rbx), %rsi
	movq	_MAX_SCNHDR_NRELOC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jle	LBB0_4
## %bb.5:
	movl	20(%rbx), %esi
	leaq	-50(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcpy
	movb	$0, -46(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_bfd_get_filename
	movl	8(%rbx), %ecx
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	__bfd_error_handler
	movq	_bfd_error_file_truncated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	movl	12(%r14), %edx
	movq	%r15, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_PUT_SCNHDR_NRELOC
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_4:
	movl	12(%r14), %edx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_PUT_SCNHDR_NRELOC
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SCNHDR_NLNNO,8,3           ## @MAX_SCNHDR_NLNNO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: warning: %s: line number overflow: 0x%lx > 0xffff"

	.comm	_MAX_SCNHDR_NRELOC,8,3          ## @MAX_SCNHDR_NRELOC
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s: reloc overflow: 0x%lx > 0xffff"

	.comm	_bfd_error_file_truncated,4,2   ## @bfd_error_file_truncated
	.no_dead_strip	_coff_swap_scnhdr_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coff_swap_scnhdr_out
_coff_swap_scnhdr_out:                  ; @coff_swap_scnhdr_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_bfd_coff_scnhsz
	mov	x22, x0
	ldr	x0, [x20]
	ldr	w1, [x21, #20]
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x21, #48]
	ldr	w2, [x20, #44]
	mov	x0, x19
	bl	_PUT_SCNHDR_VADDR
	ldr	w1, [x21, #44]
	ldr	w2, [x20, #40]
	mov	x0, x19
	bl	_PUT_SCNHDR_PADDR
	ldr	w1, [x21, #40]
	ldr	w2, [x20, #36]
	mov	x0, x19
	bl	_PUT_SCNHDR_SIZE
	ldr	w1, [x21, #36]
	ldr	w2, [x20, #32]
	mov	x0, x19
	bl	_PUT_SCNHDR_SCNPTR
	ldr	w1, [x21, #32]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_PUT_SCNHDR_RELPTR
	ldr	w1, [x21, #28]
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_PUT_SCNHDR_LNNOPTR
	ldr	w1, [x21, #24]
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_PUT_SCNHDR_FLAGS
	ldr	x1, [x21]
Lloh0:
	adrp	x8, _MAX_SCNHDR_NLNNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SCNHDR_NLNNO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_2
; %bb.1:
	ldr	w1, [x21, #20]
	add	x0, sp, #11
	mov	w2, #4
	bl	_memcpy
	strb	wzr, [sp, #15]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x23, x0
	mov	x0, x19
	bl	_bfd_get_filename
	mov	x1, x0
	ldr	w3, [x21]
	add	x2, sp, #11
	mov	x0, x23
	bl	__bfd_error_handler
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #65535
	b	LBB0_3
LBB0_2:
	ldr	w2, [x20, #16]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_3:
	bl	_PUT_SCNHDR_NLNNO
	ldr	x1, [x21, #8]
Lloh5:
	adrp	x8, _MAX_SCNHDR_NRELOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_SCNHDR_NRELOC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_5
; %bb.4:
	ldr	w1, [x21, #20]
	add	x0, sp, #6
	mov	w2, #4
	bl	_memcpy
	strb	wzr, [sp, #10]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x19
	bl	_bfd_get_filename
	mov	x1, x0
	ldr	w3, [x21, #8]
	add	x2, sp, #6
	mov	x0, x22
	bl	__bfd_error_handler
Lloh10:
	adrp	x8, _bfd_error_file_truncated@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bfd_error_file_truncated@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_bfd_set_error
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #65535
	bl	_PUT_SCNHDR_NRELOC
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	ldr	w2, [x20, #12]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_PUT_SCNHDR_NRELOC
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SCNHDR_NLNNO,8,3           ; @MAX_SCNHDR_NLNNO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: warning: %s: line number overflow: 0x%lx > 0xffff"

	.comm	_MAX_SCNHDR_NRELOC,8,3          ; @MAX_SCNHDR_NRELOC
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s: reloc overflow: 0x%lx > 0xffff"

	.comm	_bfd_error_file_truncated,4,2   ; @bfd_error_file_truncated
	.no_dead_strip	_coff_swap_scnhdr_out
.subsections_via_symbols
