	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gpt_write_pmbr
LCPI0_0:
	.long	238                             ## 0xee
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gpt_write_pmbr:                        ## @gpt_write_pmbr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%rdi), %r14
	cmpq	%rdi, %rax
	cmovlq	%rax, %r14
	movq	_secsz@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_DOSPARTOFF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	(%r13), %rdx
	subq	%rax, %rdx
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
LBB0_6:
	callq	_memset
	movq	_DOSPARTOFF@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movl	$2, 8(%rbx,%rax,4)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [238,255,255,255]
	movups	%xmm0, 16(%rbx,%rax,4)
	leaq	(%rbx,%rax,4), %rdi
	addq	$32, %rdi
	movl	$1, %esi
	callq	_le32enc
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,4), %rdi
	addq	$48, %rdi
	movq	%r14, %rsi
	callq	_le32enc
	movq	_DOSMAGICOFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	_DOSMAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_le16enc
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_image_write
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_secsz,8,3                      ## @secsz
	.comm	_errno,4,2                      ## @errno
	.comm	_DOSPARTOFF,4,2                 ## @DOSPARTOFF
	.comm	_DOSMAGICOFFSET,4,2             ## @DOSMAGICOFFSET
	.comm	_DOSMAGIC,4,2                   ## @DOSMAGIC
	.no_dead_strip	_gpt_write_pmbr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function gpt_write_pmbr
lCPI0_0:
	.long	238                             ; 0xee
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gpt_write_pmbr:                        ; @gpt_write_pmbr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
Lloh0:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x9, x0, #1
	cmp	x8, x0
	csel	x20, x8, x9, lt
Lloh3:
	adrp	x24, _secsz@GOTPAGE
Lloh4:
	ldr	x24, [x24, _secsz@GOTPAGEOFF]
	ldr	x22, [x24]
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x23, _DOSPARTOFF@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DOSPARTOFF@GOTPAGEOFF]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_memcpy
	ldrsw	x8, [x23]
	add	x0, x19, x8, lsl #2
	ldr	x9, [x24]
	sub	x2, x9, x8
	mov	w1, #0
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
LBB0_5:
	bl	_memset
	ldrsw	x8, [x23]
	add	w9, w8, #2
	mov	w10, #2
	str	w10, [x19, w9, sxtw #2]
	add	w9, w8, #4
	sbfiz	x9, x9, #2, #32
Lloh10:
	adrp	x10, lCPI0_0@PAGE
Lloh11:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	str	q0, [x19, x9]
	add	x8, x19, x8, lsl #2
	add	x0, x8, #32
	mov	w1, #1
	bl	_le32enc
	ldrsw	x8, [x23]
	add	x8, x19, x8, lsl #2
	add	x0, x8, #48
	mov	x1, x20
	bl	_le32enc
Lloh12:
	adrp	x8, _DOSMAGICOFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOSMAGICOFFSET@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	add	x0, x19, x8, lsl #2
Lloh15:
	adrp	x8, _DOSMAGIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOSMAGIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_le16enc
	mov	w0, #0
	mov	x1, x19
	mov	w2, #1
	bl	_image_write
	mov	x20, x0
	mov	x0, x19
	bl	_free
	mov	x0, x20
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_secsz,8,3                      ; @secsz
	.comm	_errno,4,2                      ; @errno
	.comm	_DOSPARTOFF,4,2                 ; @DOSPARTOFF
	.comm	_DOSMAGICOFFSET,4,2             ; @DOSMAGICOFFSET
	.comm	_DOSMAGIC,4,2                   ; @DOSMAGIC
	.no_dead_strip	_gpt_write_pmbr
.subsections_via_symbols
