	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_fan_status
_set_fan_status:                        ## @set_fan_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	_HCI_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hci_write
	movq	%rax, %rbx
	movq	_TOS_FAILURE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_2
LBB0_3:
	movq	_TOS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_TOS_SUCCESS@GOTPCREL(%rip), %rcx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	(%rcx), %rbx
	cmovel	%esi, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_FAN,4,2                    ## @HCI_FAN
	.comm	_TOS_FAILURE,8,3                ## @TOS_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACPI call to set Fan status failed\n"

	.comm	_TOS_NOT_SUPPORTED,8,3          ## @TOS_NOT_SUPPORTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TOS_SUCCESS,8,3                ## @TOS_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_set_fan_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_fan_status
_set_fan_status:                        ; @set_fan_status
	.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	x2, x1
Lloh0:
	adrp	x8, _HCI_FAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCI_FAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hci_write
	mov	x19, x0
Lloh3:
	adrp	x8, _TOS_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOS_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _TOS_NOT_SUPPORTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TOS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _TOS_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TOS_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _EIO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	x19, x8
	csneg	w0, wzr, w9, eq
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_FAN,4,2                    ; @HCI_FAN
	.comm	_TOS_FAILURE,8,3                ; @TOS_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACPI call to set Fan status failed\n"

	.comm	_TOS_NOT_SUPPORTED,8,3          ; @TOS_NOT_SUPPORTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TOS_SUCCESS,8,3                ; @TOS_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_set_fan_status
.subsections_via_symbols
