	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_thp_state
_init_thp_state:                        ## @init_thp_state
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_have_madvise_huge@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.5:
	movl	%eax, %ebx
	leaq	-64(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_malloc_read_fd
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_close
	leaq	_init_thp_state.sys_state_madvise(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	leaq	_init_thp_state.sys_state_always(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	_init_thp_state.sys_state_never(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_thp_mode_never@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	callq	_metadata_thp_enabled
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	_opt_abort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
LBB0_12:
	movq	_thp_mode_not_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_init_system_thp_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_opt_thp@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_6:
	movq	_thp_mode_default@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_thp_mode_always@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	_init_system_thp_mode@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_malloc_write
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_have_madvise_huge,4,2          ## @have_madvise_huge
	.comm	_opt_abort,8,3                  ## @opt_abort
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<jemalloc>: no MADV_HUGEPAGE support\n"

	.section	__TEXT,__const
	.p2align	4                               ## @init_thp_state.sys_state_madvise
_init_thp_state.sys_state_madvise:
	.asciz	"always [madvise] never\n"

	.p2align	4                               ## @init_thp_state.sys_state_always
_init_thp_state.sys_state_always:
	.asciz	"[always] madvise never\n"

	.p2align	4                               ## @init_thp_state.sys_state_never
_init_thp_state.sys_state_never:
	.asciz	"always madvise [never]\n"

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"/sys/kernel/mm/transparent_hugepage/enabled"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_thp_mode_default,4,2           ## @thp_mode_default
	.comm	_init_system_thp_mode,4,2       ## @init_system_thp_mode
	.comm	_thp_mode_always,4,2            ## @thp_mode_always
	.comm	_thp_mode_never,4,2             ## @thp_mode_never
	.comm	_thp_mode_not_supported,4,2     ## @thp_mode_not_supported
	.comm	_opt_thp,4,2                    ## @opt_thp
	.comm	_SYS_close,4,2                  ## @SYS_close
	.comm	_SYS_open,4,2                   ## @SYS_open
	.no_dead_strip	_init_thp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_thp_state
_init_thp_state:                        ; @init_thp_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _have_madvise_huge@GOTPAGE
Lloh4:
	ldr	x8, [x8, _have_madvise_huge@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	mov	x20, x0
	mov	x1, sp
	mov	w2, #24
	bl	_malloc_read_fd
	mov	x19, x0
	mov	x0, x20
	bl	_close
Lloh11:
	adrp	x1, _init_thp_state.sys_state_madvise@PAGE
Lloh12:
	add	x1, x1, _init_thp_state.sys_state_madvise@PAGEOFF
	mov	x0, sp
	mov	x2, x19
	bl	_strncmp
	cbz	x0, LBB0_9
; %bb.3:
Lloh13:
	adrp	x1, _init_thp_state.sys_state_always@PAGE
Lloh14:
	add	x1, x1, _init_thp_state.sys_state_always@PAGEOFF
	mov	x0, sp
	mov	x2, x19
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.4:
Lloh15:
	adrp	x1, _init_thp_state.sys_state_never@PAGE
Lloh16:
	add	x1, x1, _init_thp_state.sys_state_never@PAGEOFF
	mov	x0, sp
	mov	x2, x19
	bl	_strncmp
	cbnz	x0, LBB0_8
; %bb.5:
Lloh17:
	adrp	x8, _thp_mode_never@GOTPAGE
Lloh18:
	ldr	x8, [x8, _thp_mode_never@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	bl	_metadata_thp_enabled
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _opt_abort@GOTPAGE
Lloh20:
	ldr	x8, [x8, _opt_abort@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbnz	x8, LBB0_15
LBB0_8:
Lloh22:
	adrp	x8, _thp_mode_not_supported@GOTPAGE
Lloh23:
	ldr	x8, [x8, _thp_mode_not_supported@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _init_system_thp_mode@GOTPAGE
Lloh26:
	ldr	x9, [x9, _init_system_thp_mode@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
Lloh28:
	adrp	x9, _opt_thp@GOTPAGE
Lloh29:
	ldr	x9, [x9, _opt_thp@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh30:
	adrp	x8, _thp_mode_default@GOTPAGE
Lloh31:
	ldr	x8, [x8, _thp_mode_default@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh32:
	adrp	x8, _thp_mode_always@GOTPAGE
Lloh33:
	ldr	x8, [x8, _thp_mode_always@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _init_system_thp_mode@GOTPAGE
Lloh35:
	ldr	x9, [x9, _init_system_thp_mode@GOTPAGEOFF]
LBB0_12:
	str	w8, [x9]
	ldr	x8, [sp, #24]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	bl	___stack_chk_fail
LBB0_15:
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	bl	_malloc_write
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_have_madvise_huge,4,2          ; @have_madvise_huge
	.comm	_opt_abort,8,3                  ; @opt_abort
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<jemalloc>: no MADV_HUGEPAGE support\n"

	.section	__TEXT,__const
_init_thp_state.sys_state_madvise:      ; @init_thp_state.sys_state_madvise
	.asciz	"always [madvise] never\n"

_init_thp_state.sys_state_always:       ; @init_thp_state.sys_state_always
	.asciz	"[always] madvise never\n"

_init_thp_state.sys_state_never:        ; @init_thp_state.sys_state_never
	.asciz	"always madvise [never]\n"

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"/sys/kernel/mm/transparent_hugepage/enabled"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_thp_mode_default,4,2           ; @thp_mode_default
	.comm	_init_system_thp_mode,4,2       ; @init_system_thp_mode
	.comm	_thp_mode_always,4,2            ; @thp_mode_always
	.comm	_thp_mode_never,4,2             ; @thp_mode_never
	.comm	_thp_mode_not_supported,4,2     ; @thp_mode_not_supported
	.comm	_opt_thp,4,2                    ; @opt_thp
	.comm	_SYS_close,4,2                  ; @SYS_close
	.comm	_SYS_open,4,2                   ; @SYS_open
	.no_dead_strip	_init_thp_state
.subsections_via_symbols
