	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucd9000_read_byte_data
_ucd9000_read_byte_data:                ## @ucd9000_read_byte_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpl	$128, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_9
## %bb.2:
	testl	%esi, %esi
	jg	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ucd9000_get_fan_config
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_5
LBB0_7:
	testl	%esi, %esi
	jle	LBB0_12
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENODATA@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_ucd9000_get_fan_config
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.13:
	movq	%r14, %rdi
	movl	$3, %esi
LBB0_5:
	callq	_ucd9000_get_fan_config
	testl	%eax, %eax
	js	LBB0_6
## %bb.14:
	shll	$4, %ebx
	orl	%eax, %ebx
	jmp	LBB0_11
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_ucd9000_read_byte_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucd9000_read_byte_data
_ucd9000_read_byte_data:                ; @ucd9000_read_byte_data
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_7
; %bb.2:
	cmp	w1, #1
	b.ge	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_ucd9000_get_fan_config
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	b	LBB0_12
LBB0_5:
	cmp	w1, #1
	b.lt	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _ENODATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	w1, #2
	bl	_ucd9000_get_fan_config
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
; %bb.11:
	mov	x0, x20
	mov	w1, #3
LBB0_12:
	bl	_ucd9000_get_fan_config
	orr	w8, w0, w19, lsl #4
	tst	w0, #0x80000000
	csel	w19, w0, w8, ne
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_ucd9000_read_byte_data
.subsections_via_symbols
