	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_caps_set
_hfi1_caps_set:                         ## @hfi1_caps_set
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	movq	(%rbx), %r15
	movq	_HFI1_CAP_WRITABLE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_HFI1_CAP_USER_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r14, %r12
	shlq	%cl, %r12
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_kstrtoul
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_HFI1_CAP_LOCKED_SMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	notq	%rbx
	andq	%r15, %rbx
	xorq	-48(%rbp), %rbx
	xorl	%eax, %eax
	callq	_HFI1_CAP_LOCKED
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	orq	%r14, %r12
	movq	%r12, %rsi
	notq	%rsi
	andq	%rbx, %rsi
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
	andq	%r12, %rbx
LBB0_5:
	movq	_HFI1_CAP_USER_SHIFT@GOTPCREL(%rip), %rcx
	movq	_HFI1_CAP_RESERVED_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	movq	-48(%rbp), %rdx
	xorq	%r15, %rdx
	andq	%rax, %rdx
	andq	%rbx, %rdx
	xorq	%r15, %rdx
	movq	_HFI1_CAP_MUST_HAVE_KERN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rcx), %cl
	movq	%rdx, %rsi
	andq	%rax, %rsi
	shlq	%cl, %rax
	andq	%rdx, %rax
	shlq	%cl, %rsi
	xorq	%rax, %rsi
	notq	%rsi
	andq	%rdx, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, (%rax)
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_CAP_WRITABLE_MASK,8,3     ## @HFI1_CAP_WRITABLE_MASK
	.comm	_HFI1_CAP_USER_SHIFT,8,3        ## @HFI1_CAP_USER_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid module parameter value for 'cap_mask'\n"

	.comm	_HFI1_CAP_LOCKED_SMASK,8,3      ## @HFI1_CAP_LOCKED_SMASK
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring non-writable capability bits %#lx\n"

	.comm	_HFI1_CAP_RESERVED_MASK,8,3     ## @HFI1_CAP_RESERVED_MASK
	.comm	_HFI1_CAP_MUST_HAVE_KERN,8,3    ## @HFI1_CAP_MUST_HAVE_KERN
	.no_dead_strip	_hfi1_caps_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_caps_set
_hfi1_caps_set:                         ; @hfi1_caps_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x1]
	ldr	x22, [x20]
Lloh0:
	adrp	x8, _HFI1_CAP_WRITABLE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFI1_CAP_WRITABLE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x21, _HFI1_CAP_USER_SHIFT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HFI1_CAP_USER_SHIFT@GOTPAGEOFF]
	ldr	x25, [x21]
	add	x2, sp, #8
	mov	w1, #0
	bl	_kstrtoul
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_6
LBB0_2:
	ldr	x8, [sp, #8]
Lloh7:
	adrp	x9, _HFI1_CAP_LOCKED_SMASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HFI1_CAP_LOCKED_SMASK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	bic	x9, x22, x9
	eor	x23, x9, x8
	bl	_HFI1_CAP_LOCKED
	cbz	x0, LBB0_5
; %bb.3:
	lsl	x8, x24, x25
	orr	x24, x8, x24
	bics	x8, x23, x24
	b.eq	LBB0_5
; %bb.4:
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	and	x23, x23, x24
LBB0_5:
Lloh12:
	adrp	x8, _HFI1_CAP_RESERVED_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HFI1_CAP_RESERVED_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	bic	x8, x23, x8
	bic	x9, x22, x8
	ldr	x10, [sp, #8]
	and	x8, x10, x8
	orr	x8, x9, x8
Lloh15:
	adrp	x9, _HFI1_CAP_MUST_HAVE_KERN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HFI1_CAP_MUST_HAVE_KERN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x10, [x21]
	lsl	x11, x9, x10
	and	x11, x11, x8
	and	x9, x8, x9
	lsl	x9, x9, x10
	eor	x9, x9, x11
	bic	x8, x8, x9
	str	x8, [x20]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_CAP_WRITABLE_MASK,8,3     ; @HFI1_CAP_WRITABLE_MASK
	.comm	_HFI1_CAP_USER_SHIFT,8,3        ; @HFI1_CAP_USER_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid module parameter value for 'cap_mask'\n"

	.comm	_HFI1_CAP_LOCKED_SMASK,8,3      ; @HFI1_CAP_LOCKED_SMASK
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring non-writable capability bits %#lx\n"

	.comm	_HFI1_CAP_RESERVED_MASK,8,3     ; @HFI1_CAP_RESERVED_MASK
	.comm	_HFI1_CAP_MUST_HAVE_KERN,8,3    ; @HFI1_CAP_MUST_HAVE_KERN
	.no_dead_strip	_hfi1_caps_set
.subsections_via_symbols
