	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_chip
_enable_chip:                           ## @enable_chip
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_QIB_SENDCTRL_SEND_ENB@GOTPCREL(%rip), %r14
	movq	_QIB_SENDCTRL_AVAIL_ENB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	addq	%rbx, %rdi
	movl	(%r12), %esi
	orl	(%r14), %esi
	callq	*40(%r15)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_QIB_NODMA_RTAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	jne	LBB0_4
## %bb.5:
	movq	_QIB_RCVCTRL_TAILUPD_ENB@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_QIB_RCVCTRL_TAILUPD_DIS@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_QIB_RCVCTRL_INTRAVAIL_ENB@GOTPCREL(%rip), %rdx
	movq	_QIB_RCVCTRL_CTXT_ENB@GOTPCREL(%rip), %rsi
	movl	(%rdx), %r14d
	orl	(%rsi), %r14d
	orl	(%rcx), %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	8(%r15), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rax,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx), %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	*16(%r15)
	movq	24(%r15), %rax
	jmp	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_SENDCTRL_SEND_ENB,4,2      ## @QIB_SENDCTRL_SEND_ENB
	.comm	_QIB_SENDCTRL_AVAIL_ENB,4,2     ## @QIB_SENDCTRL_AVAIL_ENB
	.comm	_QIB_RCVCTRL_CTXT_ENB,4,2       ## @QIB_RCVCTRL_CTXT_ENB
	.comm	_QIB_RCVCTRL_INTRAVAIL_ENB,4,2  ## @QIB_RCVCTRL_INTRAVAIL_ENB
	.comm	_QIB_NODMA_RTAIL,4,2            ## @QIB_NODMA_RTAIL
	.comm	_QIB_RCVCTRL_TAILUPD_DIS,4,2    ## @QIB_RCVCTRL_TAILUPD_DIS
	.comm	_QIB_RCVCTRL_TAILUPD_ENB,4,2    ## @QIB_RCVCTRL_TAILUPD_ENB
	.no_dead_strip	_enable_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_chip
_enable_chip:                           ; @enable_chip
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _QIB_SENDCTRL_SEND_ENB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QIB_SENDCTRL_SEND_ENB@GOTPAGEOFF]
Lloh2:
	adrp	x22, _QIB_SENDCTRL_AVAIL_ENB@GOTPAGE
Lloh3:
	ldr	x22, [x22, _QIB_SENDCTRL_AVAIL_ENB@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #32]
	add	x0, x20, x9
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w1, w10, w9
	blr	x8
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x19, #4]
Lloh4:
	adrp	x9, _QIB_NODMA_RTAIL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _QIB_NODMA_RTAIL@GOTPAGEOFF]
Lloh6:
	adrp	x10, _QIB_RCVCTRL_TAILUPD_DIS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _QIB_RCVCTRL_TAILUPD_DIS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x11, _QIB_RCVCTRL_TAILUPD_ENB@GOTPAGE
Lloh10:
	ldr	x11, [x11, _QIB_RCVCTRL_TAILUPD_ENB@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x11, x10, eq
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x20, #0
Lloh11:
	adrp	x10, _QIB_RCVCTRL_CTXT_ENB@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QIB_RCVCTRL_CTXT_ENB@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _QIB_RCVCTRL_INTRAVAIL_ENB@GOTPAGE
Lloh15:
	ldr	x11, [x11, _QIB_RCVCTRL_INTRAVAIL_ENB@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w9, [x9]
	orr	w21, w10, w9
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	cbz	x8, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x19, #8]
	cmp	x20, x9
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x8, x20, lsl #3]
	cbz	x9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x9]
	mov	x1, x21
	mov	x2, x20
	blr	x8
	ldr	x8, [x19, #24]
	b	LBB0_5
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_SENDCTRL_SEND_ENB,4,2      ; @QIB_SENDCTRL_SEND_ENB
	.comm	_QIB_SENDCTRL_AVAIL_ENB,4,2     ; @QIB_SENDCTRL_AVAIL_ENB
	.comm	_QIB_RCVCTRL_CTXT_ENB,4,2       ; @QIB_RCVCTRL_CTXT_ENB
	.comm	_QIB_RCVCTRL_INTRAVAIL_ENB,4,2  ; @QIB_RCVCTRL_INTRAVAIL_ENB
	.comm	_QIB_NODMA_RTAIL,4,2            ; @QIB_NODMA_RTAIL
	.comm	_QIB_RCVCTRL_TAILUPD_DIS,4,2    ; @QIB_RCVCTRL_TAILUPD_DIS
	.comm	_QIB_RCVCTRL_TAILUPD_ENB,4,2    ; @QIB_RCVCTRL_TAILUPD_ENB
	.no_dead_strip	_enable_chip
.subsections_via_symbols
