	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f71805f_init_device
_f71805f_init_device:                   ## @f71805f_init_device
	.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	%rdi, %r14
	movq	_F71805F_REG_START@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_f71805f_read8
	movq	%rax, %rbx
	andl	$65, %eax
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	(%r15), %esi
	andl	$-66, %ebx
	orl	$1, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_f71805f_write8
LBB0_2:
	xorl	%edi, %edi
	callq	_F71805F_REG_FAN_CTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_f71805f_read8
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_FAN_CTRL_LATCH_FULL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.3:
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%rcx)
	xorl	%edi, %edi
	callq	_F71805F_REG_FAN_CTRL
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_f71805f_write8
LBB0_4:
	movl	$1, %edi
	callq	_F71805F_REG_FAN_CTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_f71805f_read8
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	(%rbx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.5:
	notl	%edx
	andl	%eax, %edx
	movl	%edx, 4(%rcx)
	movl	$1, %edi
	callq	_F71805F_REG_FAN_CTRL
	movq	(%r14), %rcx
	movl	4(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_f71805f_write8
LBB0_6:
	movl	$2, %edi
	callq	_F71805F_REG_FAN_CTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_f71805f_read8
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	movl	(%rbx), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.8:
	notl	%edx
	andl	%eax, %edx
	movl	%edx, 8(%rcx)
	movl	$2, %edi
	callq	_F71805F_REG_FAN_CTRL
	movq	(%r14), %rcx
	movl	8(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_f71805f_write8                 ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F71805F_REG_START,4,2          ## @F71805F_REG_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting monitoring operations\n"

	.comm	_FAN_CTRL_LATCH_FULL,4,2        ## @FAN_CTRL_LATCH_FULL
	.no_dead_strip	_f71805f_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f71805f_init_device
_f71805f_init_device:                   ; @f71805f_init_device
	.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
Lloh0:
	adrp	x21, _F71805F_REG_START@GOTPAGE
Lloh1:
	ldr	x21, [x21, _F71805F_REG_START@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_f71805f_read8
	mov	x20, x0
	mov	w8, #65
	and	w8, w20, w8
	cmp	w8, #1
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w1, [x21]
	and	w8, w20, #0xffffffbf
	orr	w2, w8, #0x1
	mov	x0, x19
	bl	_f71805f_write8
LBB0_2:
	mov	w0, #0
	bl	_F71805F_REG_FAN_CTRL
	mov	x1, x0
	mov	x0, x19
	bl	_f71805f_read8
	ldr	x8, [x19]
	str	w0, [x8]
Lloh4:
	adrp	x20, _FAN_CTRL_LATCH_FULL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _FAN_CTRL_LATCH_FULL@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w0
	b.eq	LBB0_4
; %bb.3:
	bic	w9, w0, w9
	str	w9, [x8]
	mov	w0, #0
	bl	_F71805F_REG_FAN_CTRL
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_f71805f_write8
LBB0_4:
	mov	w0, #1
	bl	_F71805F_REG_FAN_CTRL
	mov	x1, x0
	mov	x0, x19
	bl	_f71805f_read8
	ldr	x8, [x19]
	str	w0, [x8, #4]
	ldr	w9, [x20]
	tst	w9, w0
	b.eq	LBB0_6
; %bb.5:
	bic	w9, w0, w9
	str	w9, [x8, #4]
	mov	w0, #1
	bl	_F71805F_REG_FAN_CTRL
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_f71805f_write8
LBB0_6:
	mov	w0, #2
	bl	_F71805F_REG_FAN_CTRL
	mov	x1, x0
	mov	x0, x19
	bl	_f71805f_read8
	ldr	x8, [x19]
	str	w0, [x8, #8]
	ldr	w9, [x20]
	tst	w9, w0
	b.eq	LBB0_8
; %bb.7:
	bic	w9, w0, w9
	str	w9, [x8, #8]
	mov	w0, #2
	bl	_F71805F_REG_FAN_CTRL
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	x0, x19
	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
	b	_f71805f_write8
LBB0_8:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_F71805F_REG_START,4,2          ; @F71805F_REG_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting monitoring operations\n"

	.comm	_FAN_CTRL_LATCH_FULL,4,2        ; @FAN_CTRL_LATCH_FULL
	.no_dead_strip	_f71805f_init_device
.subsections_via_symbols
