	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_msdos_stub                  ## -- Begin function pe_msdos_stub
	.p2align	4, 0x90
_pe_msdos_stub:                         ## @pe_msdos_stub
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movl	4(%rbx), %ecx
	movq	_LIBPE_F_LOAD_DOS_STUB@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.5:
	movq	_LIBPE_F_SPECIAL_FILE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_libpe_read_msdos_stub
	movl	(%rbx), %eax
LBB0_6:
	cltq
	addq	$4, %rax
	movq	%rax, (%r14)
	movq	8(%rbx), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_LIBPE_F_LOAD_DOS_STUB,4,2      ## @LIBPE_F_LOAD_DOS_STUB
	.comm	_LIBPE_F_SPECIAL_FILE,4,2       ## @LIBPE_F_SPECIAL_FILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_msdos_stub                  ; -- Begin function pe_msdos_stub
	.p2align	2
_pe_msdos_stub:                         ; @pe_msdos_stub
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w9, [x19, #4]
Lloh0:
	adrp	x10, _LIBPE_F_LOAD_DOS_STUB@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LIBPE_F_LOAD_DOS_STUB@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _LIBPE_F_SPECIAL_FILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIBPE_F_SPECIAL_FILE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_libpe_read_msdos_stub
	ldr	w8, [x19]
LBB0_5:
	sxtw	x8, w8
	add	x8, x8, #4
	str	x8, [x20]
	ldr	x0, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_LIBPE_F_LOAD_DOS_STUB,4,2      ; @LIBPE_F_LOAD_DOS_STUB
	.comm	_LIBPE_F_SPECIAL_FILE,4,2       ; @LIBPE_F_SPECIAL_FILE
.subsections_via_symbols
