	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_set_uevent_bits           ## -- Begin function hfi1_set_uevent_bits
	.p2align	4, 0x90
_hfi1_set_uevent_bits:                  ## @hfi1_set_uevent_bits
	.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	(%rdi), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %r12
	xorl	%eax, %eax
	cmpq	16(%r14), %r12
	jge	LBB0_11
## %bb.3:
	movl	%esi, %r13d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_hfi1_rcd_put
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	16(%r14), %r12
	jge	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hfi1_rcd_get_by_index
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	(%r14), %r14
	movq	%rax, %rdi
	callq	_uctxt_offset
	movslq	%eax, %r15
	leaq	(%r14,%r15,8), %rsi
	movl	%r13d, %edi
	callq	_set_bit
	cmpl	$2, (%rbx)
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%r15,8), %r14
	addq	$8, %r14
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_set_bit
	incq	%r15
	movslq	(%rbx), %rax
	addq	$8, %r14
	cmpq	%rax, %r15
	jl	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_set_uevent_bits           ; -- Begin function hfi1_set_uevent_bits
	.p2align	2
_hfi1_set_uevent_bits:                  ; @hfi1_set_uevent_bits
	.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
	ldr	x20, [x0]
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.1:
	ldp	x21, x8, [x20, #8]
	cmp	x21, x8
	b.ge	LBB0_9
; %bb.2:
	mov	x19, x1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_hfi1_rcd_put
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #16]
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x20
	mov	x1, x21
	bl	_hfi1_rcd_get_by_index
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	ldr	x24, [x20]
	bl	_uctxt_offset
	mov	x23, x0
	add	x1, x24, w0, sxtw #3
	mov	x0, x19
	bl	_set_bit
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w23
	add	x8, x24, x8, lsl #3
	add	x23, x8, #8
	mov	w24, #1
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_set_bit
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_8
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
