	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_bin_coff_init_scn_hdr
_r_bin_coff_init_scn_hdr:               ## @r_bin_coff_init_scn_hdr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ecx, %ecx
	cmpq	$0, 32(%rdi)
	setne	%cl
	shlq	$2, %rcx
	movq	16(%rdi), %rax
	movq	_COFF_FILE_TI_COFF@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	movq	(%rdi), %rax
	sete	%sil
	leaq	(%rcx,%rsi,2), %r15
	addq	$4, %r15
	cmpq	%rax, %r15
	jle	LBB0_1
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movl	24(%rdi), %r12d
	shll	$2, %r12d
	movslq	%r12d, %rcx
	addq	%r15, %rcx
	cmpq	%rax, %rcx
	jg	LBB0_6
## %bb.2:
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.3:
	leal	4(%r12), %esi
	movl	$1, %r14d
	movl	$1, %edi
	callq	_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	24(%rbx), %r8d
	movl	48(%rbx), %edi
	cmpq	$0, 40(%rbx)
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str(%rip), %rcx
	cmoveq	%rdx, %rcx
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_r_buf_fread_at
	cmpl	%r12d, %eax
	je	LBB0_7
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_R_FREE
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_COFF_FILE_TI_COFF,8,3          ## @COFF_FILE_TI_COFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"8c6I2S1I"

L_.str.1:                               ## @.str.1
	.asciz	"8c6i2s1i"

	.no_dead_strip	_r_bin_coff_init_scn_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_bin_coff_init_scn_hdr
_r_bin_coff_init_scn_hdr:               ; @r_bin_coff_init_scn_hdr
	.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
	ldr	x8, [x0, #32]
	mov	w9, #8
	mov	w10, #4
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _COFF_FILE_TI_COFF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _COFF_FILE_TI_COFF@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	orr	x11, x8, #0x2
	cmp	x9, x10
	csel	x20, x11, x8, eq
	ldr	x8, [x0]
	cmp	x20, x8
	b.le	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x19, x0
	mov	w0, #0
	ldr	w9, [x19, #24]
	lsl	w21, w9, #2
	add	x9, x20, w21, sxtw
	cmp	x9, x8
	b.gt	LBB0_2
; %bb.4:
	tbnz	w21, #31, LBB0_2
; %bb.5:
	add	w1, w21, #4
	mov	w0, #1
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.6:
	mov	x2, x0
	ldr	w0, [x19, #48]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x9, [x19, #40]
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x9, #0
	csel	x3, x10, x8, eq
	ldr	w4, [x19, #24]
	mov	x1, x20
	bl	_r_buf_fread_at
	cmp	w0, w21
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_2
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_R_FREE
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_COFF_FILE_TI_COFF,8,3          ; @COFF_FILE_TI_COFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"8c6I2S1I"

l_.str.1:                               ; @.str.1
	.asciz	"8c6i2s1i"

	.no_dead_strip	_r_bin_coff_init_scn_hdr
.subsections_via_symbols
