	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nodemgr_bus_read
_nodemgr_bus_read:                      ## @nodemgr_bus_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	16(%rcx), %edi
	movl	8(%rcx), %edx
	movl	12(%rcx), %esi
	movl	%r15d, %ecx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_hpsb_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_nodemgr_check_speed
	testl	%eax, %eax
	je	LBB0_11
LBB0_3:
	movl	$334, %edi                      ## imm = 0x14E
	callq	_msleep_interruptible
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movl	16(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movl	%r15d, %ecx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_hpsb_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_nodemgr_check_speed
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:
	movl	$334, %edi                      ## imm = 0x14E
	callq	_msleep_interruptible
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	movl	16(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movl	%r15d, %ecx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_hpsb_read
	testl	%eax, %eax
	jne	LBB0_12
LBB0_10:
	movq	$0, (%rbx)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_nodemgr_bus_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nodemgr_bus_read
_nodemgr_bus_read:                      ; @nodemgr_bus_read
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldp	w1, w0, [x3, #12]
	ldr	w2, [x3, #8]
	mov	x3, x21
	mov	x4, x20
	mov	w5, #4
	bl	_hpsb_read
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_nodemgr_check_speed
	cbz	w0, LBB0_11
LBB0_3:
	mov	w0, #334
	bl	_msleep_interruptible
	cbz	x0, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x19, #8]
	mov	x3, x21
	mov	x4, x20
	mov	w5, #4
	bl	_hpsb_read
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_nodemgr_check_speed
	cbz	w0, LBB0_11
LBB0_8:
	mov	w0, #334
	bl	_msleep_interruptible
	cbnz	x0, LBB0_4
; %bb.9:
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x19, #8]
	mov	x3, x21
	mov	x4, x20
	mov	w5, #4
	bl	_hpsb_read
	cbnz	w0, LBB0_11
LBB0_10:
	mov	w0, #0
	str	xzr, [x19]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_nodemgr_bus_read
.subsections_via_symbols
