	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pages_set_thp_state            ## -- Begin function pages_set_thp_state
	.p2align	4, 0x90
_pages_set_thp_state:                   ## @pages_set_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	%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	_opt_thp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_thp_mode_default@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.1:
	movq	_init_system_thp_mode@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_thp_mode_not_supported@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rax
	setne	%al
	cmpq	%rdx, %rcx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%rbx), %rcx
	movq	_thp_mode_always@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_3
## %bb.4:
	movq	(%r12), %rdx
	movq	_thp_mode_never@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.7:
	xorl	%edi, %edi
	cmpq	(%r13), %rdx
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pages_huge_unaligned           ## TAILCALL
LBB0_3:
	movq	_thp_mode_never@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_5:
	cmpq	%rdx, %rcx
	jne	LBB0_6
## %bb.8:
	movq	(%r12), %rcx
	cmpq	(%r13), %rcx
	sete	%dl
	cmpq	%rax, %rcx
	sete	%al
	orb	%dl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pages_nohuge_unaligned         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_opt_thp,8,3                    ## @opt_thp
	.comm	_thp_mode_default,8,3           ## @thp_mode_default
	.comm	_init_system_thp_mode,8,3       ## @init_system_thp_mode
	.comm	_thp_mode_not_supported,8,3     ## @thp_mode_not_supported
	.comm	_thp_mode_always,8,3            ## @thp_mode_always
	.comm	_thp_mode_never,8,3             ## @thp_mode_never
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pages_set_thp_state            ; -- Begin function pages_set_thp_state
	.p2align	2
_pages_set_thp_state:                   ; @pages_set_thp_state
	.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
Lloh0:
	adrp	x23, _opt_thp@GOTPAGE
Lloh1:
	ldr	x23, [x23, _opt_thp@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x21, _thp_mode_default@GOTPAGE
Lloh3:
	ldr	x21, [x21, _thp_mode_default@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.1:
Lloh4:
	adrp	x22, _init_system_thp_mode@GOTPAGE
Lloh5:
	ldr	x22, [x22, _init_system_thp_mode@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.2:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x10, _thp_mode_not_supported@GOTPAGE
Lloh7:
	ldr	x10, [x10, _thp_mode_not_supported@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x10, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	x9, [x23]
Lloh9:
	adrp	x8, _thp_mode_always@GOTPAGE
Lloh10:
	ldr	x8, [x8, _thp_mode_always@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x10, [x22]
Lloh12:
	adrp	x11, _thp_mode_never@GOTPAGE
Lloh13:
	ldr	x11, [x11, _thp_mode_never@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x21]
	cmp	x10, x8
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	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
	b	_pages_huge_unaligned
LBB0_5:
Lloh15:
	adrp	x10, _thp_mode_never@GOTPAGE
Lloh16:
	ldr	x10, [x10, _thp_mode_never@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
LBB0_6:
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x22]
	ldr	x10, [x21]
	cmp	x9, x10
	ccmp	x9, x8, #4, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	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
	b	_pages_nohuge_unaligned
LBB0_8:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_opt_thp,8,3                    ; @opt_thp
	.comm	_thp_mode_default,8,3           ; @thp_mode_default
	.comm	_init_system_thp_mode,8,3       ; @init_system_thp_mode
	.comm	_thp_mode_not_supported,8,3     ; @thp_mode_not_supported
	.comm	_thp_mode_always,8,3            ; @thp_mode_always
	.comm	_thp_mode_never,8,3             ; @thp_mode_never
.subsections_via_symbols
