	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coff_swap_scnhdr_in
_coff_swap_scnhdr_in:                   ## @coff_swap_scnhdr_in
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	48(%rdx), %edi
	movl	36(%rsi), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_GET_SCNHDR_VADDR
	movl	%eax, (%r15)
	movl	28(%rbx), %esi
	movq	%r14, %rdi
	callq	_GET_SCNHDR_PADDR
	movq	%rax, 8(%r15)
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_GET_SCNHDR_SIZE
	movq	%rax, 16(%r15)
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_GET_SCNHDR_SCNPTR
	movl	%eax, 44(%r15)
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_GET_SCNHDR_RELPTR
	movl	%eax, 40(%r15)
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_GET_SCNHDR_LNNOPTR
	movl	%eax, 36(%r15)
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_H_GET_32
	movl	%eax, 24(%r15)
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_H_GET_16
	movl	%eax, 32(%r15)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_H_GET_16
	movl	%eax, 28(%r15)
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pe_data
	movl	(%rax), %eax
	addl	%eax, (%r15)
LBB0_2:
	cmpq	$0, 8(%r15)
	jle	LBB0_9
## %bb.3:
	movq	_IMAGE_SCN_CNT_UNINITIALIZED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r15)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_bfd_pe_executable_p
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, 16(%r15)
	je	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_bfd_pe_executable_p
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	16(%r15), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_9
LBB0_8:
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_SCN_CNT_UNINITIALIZED_DATA,4,2 ## @IMAGE_SCN_CNT_UNINITIALIZED_DATA
	.no_dead_strip	_coff_swap_scnhdr_in
.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_in
_coff_swap_scnhdr_in:                   ; @coff_swap_scnhdr_in
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x2, #48]
	ldr	w1, [x1, #36]
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x21, #32]
	mov	x0, x20
	bl	_GET_SCNHDR_VADDR
	str	w0, [x19]
	ldr	w1, [x21, #28]
	mov	x0, x20
	bl	_GET_SCNHDR_PADDR
	str	x0, [x19, #8]
	ldr	w1, [x21, #24]
	mov	x0, x20
	bl	_GET_SCNHDR_SIZE
	str	x0, [x19, #16]
	ldr	w1, [x21, #20]
	mov	x0, x20
	bl	_GET_SCNHDR_SCNPTR
	str	w0, [x19, #44]
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	_GET_SCNHDR_RELPTR
	str	w0, [x19, #40]
	ldr	w1, [x21, #12]
	mov	x0, x20
	bl	_GET_SCNHDR_LNNOPTR
	str	w0, [x19, #36]
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_H_GET_32
	str	w0, [x19, #24]
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_H_GET_16
	str	w0, [x19, #32]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_H_GET_16
	str	w0, [x19, #28]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pe_data
	ldr	w8, [x0]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.3:
	ldr	w8, [x19, #24]
Lloh0:
	adrp	x9, _IMAGE_SCN_CNT_UNINITIALIZED_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMAGE_SCN_CNT_UNINITIALIZED_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_bfd_pe_executable_p
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_bfd_pe_executable_p
	cbz	x0, LBB0_9
; %bb.7:
	ldp	x9, x8, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_9
LBB0_8:
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_SCN_CNT_UNINITIALIZED_DATA,4,2 ; @IMAGE_SCN_CNT_UNINITIALIZED_DATA
	.no_dead_strip	_coff_swap_scnhdr_in
.subsections_via_symbols
