	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_bin_coff_init_hdr
_r_bin_coff_init_hdr:                   ## @r_bin_coff_init_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
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	movq	_COFF_IS_LITTLE_ENDIAN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_r_buf_read_ble16_at
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	movq	_COFF_IS_BIG_ENDIAN@GOTPCREL(%rip), %rbx
LBB0_2:
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	movl	12(%r12), %edi
	leaq	16(%r12), %r15
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rax, %rcx
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$1, %r8d
	callq	_r_buf_fread_at
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%r15), %rax
	movq	_COFF_FILE_TI_COFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	12(%r12), %edi
	leaq	8(%r12), %rsi
	cmpq	$0, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	$1, %ecx
	callq	_r_buf_fread
	cmpl	$4, %eax
	jne	LBB0_6
LBB0_5:
	movl	$1, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COFF_IS_LITTLE_ENDIAN,8,3      ## @COFF_IS_LITTLE_ENDIAN
	.comm	_COFF_IS_BIG_ENDIAN,8,3         ## @COFF_IS_BIG_ENDIAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"2S3I2S"

L_.str.1:                               ## @.str.1
	.asciz	"2s3i2s"

	.comm	_COFF_FILE_TI_COFF,8,3          ## @COFF_FILE_TI_COFF
L_.str.2:                               ## @.str.2
	.asciz	"S"

L_.str.3:                               ## @.str.3
	.asciz	"s"

	.no_dead_strip	_r_bin_coff_init_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_hdr
_r_bin_coff_init_hdr:                   ; @r_bin_coff_init_hdr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x20, _COFF_IS_LITTLE_ENDIAN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _COFF_IS_LITTLE_ENDIAN@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	w1, #0
	bl	_r_buf_read_ble16_at
	and	w8, w0, #0xfffffffe
Lloh2:
	adrp	x9, _COFF_IS_BIG_ENDIAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COFF_IS_BIG_ENDIAN@GOTPAGEOFF]
	cmp	w8, #128
	csel	x8, x9, x20, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x19, #12]
	add	x20, x19, #16
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
Lloh6:
	adrp	x10, l_.str.1@PAGE
Lloh7:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x3, x10, x9, eq
	mov	w1, #0
	mov	x2, x20
	mov	w4, #1
	bl	_r_buf_fread_at
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _COFF_FILE_TI_COFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _COFF_FILE_TI_COFF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	ldr	x8, [x19]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	adrp	x10, l_.str.3@PAGE
Lloh14:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	mov	w3, #1
	bl	_r_buf_fread
	cmp	w0, #4
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_COFF_IS_LITTLE_ENDIAN,8,3      ; @COFF_IS_LITTLE_ENDIAN
	.comm	_COFF_IS_BIG_ENDIAN,8,3         ; @COFF_IS_BIG_ENDIAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"2S3I2S"

l_.str.1:                               ; @.str.1
	.asciz	"2s3i2s"

	.comm	_COFF_FILE_TI_COFF,8,3          ; @COFF_FILE_TI_COFF
l_.str.2:                               ; @.str.2
	.asciz	"S"

l_.str.3:                               ; @.str.3
	.asciz	"s"

	.no_dead_strip	_r_bin_coff_init_hdr
.subsections_via_symbols
