	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_head
_common_head:                           ## @common_head
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_open_kcov
	movl	%eax, %r15d
	movq	_KIOSETBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_KCOV_ENTRY_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_ioctl
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	movl	(%rbx), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	movl	%r15d, (%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KIOSETBUFSIZE,4,2              ## @KIOSETBUFSIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_KCOV_ENTRY_SIZE,4,2            ## @KCOV_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set the kcov buffer size"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"Unable to mmap the kcov buffer"

	.no_dead_strip	_common_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_head
_common_head:                           ; @common_head
	.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
	mov	x19, x0
	bl	_open_kcov
	mov	x20, x0
Lloh0:
	adrp	x8, _KIOSETBUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KIOSETBUFSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _KCOV_ENTRY_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KCOV_ENTRY_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	bl	_ioctl
	cmp	x0, #0
	cset	w0, eq
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh12:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh16:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, x20
	mov	w5, #0
	bl	_mmap
	mov	x21, x0
Lloh19:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	str	w20, [x19]
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_KIOSETBUFSIZE,4,2              ; @KIOSETBUFSIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_KCOV_ENTRY_SIZE,4,2            ; @KCOV_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set the kcov buffer size"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"Unable to mmap the kcov buffer"

	.no_dead_strip	_common_head
.subsections_via_symbols
