	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_out_mmap                 ## -- Begin function write_out_mmap
	.p2align	4, 0x90
_write_out_mmap:                        ## @write_out_mmap
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MMAP_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	$0, 24(%r14)
	leaq	32(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_board@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%r14,%rax), %r12
	addq	$32, %r12
	leaq	33(%r14,%rax), %r15
	movb	$0, 32(%r14,%rax)
	movq	(%r13), %rax
	movl	4(%rax), %edi
	callq	_BE16_TO_HOST
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%rax,%r12), %r15
	incq	%r15
	leaq	(%rax,%r12), %rdi
	addq	$2, %rdi
	movb	$0, 1(%rax,%r12)
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%rax,%r15), %rbx
	incq	%rbx
	movb	$0, 1(%rax,%r15)
	subq	%r14, %rbx
	incq	%rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	addq	$32, %rdi
	callq	_HOST_TO_BE32
	movq	%rax, 16(%r14)
	movslq	%ebx, %r15
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_HOST_TO_BE32
	movq	%rax, 8(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_csum_buf
	movl	%eax, %edi
	callq	_HOST_TO_BE16
	movl	%eax, (%r14)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_write_out_data
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAP_DATA_SIZE,4,2             ## @MMAP_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vendor 1 %d"

	.comm	_board,8,3                      ## @board
L_.str.1:                               ## @.str.1
	.asciz	"Model 1 %d"

L_.str.2:                               ## @.str.2
	.asciz	"HwVerRange 2 %d %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_out_mmap                 ; -- Begin function write_out_mmap
	.p2align	2
_write_out_mmap:                        ; @write_out_mmap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MMAP_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAP_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	str	xzr, [x22, #24]
	add	x24, x22, #32
Lloh8:
	adrp	x26, _board@GOTPAGE
Lloh9:
	ldr	x26, [x26, _board@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_sprintf
	add	x25, x24, w0, sxtw
	strb	wzr, [x25], #1
	ldr	x8, [x26]
	ldr	w0, [x8, #4]
	bl	_BE16_TO_HOST
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	bl	_sprintf
	add	x25, x25, w0, sxtw
	strb	wzr, [x25], #1
	str	xzr, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	mov	w2, #0
	bl	_sprintf
	add	sp, sp, #16
	add	x8, x25, w0, sxtw
	strb	wzr, [x8]
	sub	x8, x8, x22
	add	x25, x8, #1
	ldr	x8, [x23]
	add	x0, x8, #32
	bl	_HOST_TO_BE32
	str	x0, [x22, #16]
	ldr	x8, [x23]
	add	x0, x8, w25, sxtw
	bl	_HOST_TO_BE32
	str	x0, [x22, #8]
	mov	x0, x24
	mov	x1, x25
	bl	_csum_buf
	bl	_HOST_TO_BE16
	str	w0, [x22]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_write_out_data
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAP_DATA_SIZE,4,2             ; @MMAP_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vendor 1 %d"

	.comm	_board,8,3                      ; @board
l_.str.1:                               ; @.str.1
	.asciz	"Model 1 %d"

l_.str.2:                               ; @.str.2
	.asciz	"HwVerRange 2 %d %d"

.subsections_via_symbols
