	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dme1737_i2c_get_features
_dme1737_i2c_get_features:              ## @dme1737_i2c_get_features
	.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	%rsi, %r14
	movl	%edi, %r15d
	callq	_dme1737_sio_enter
	movq	_force_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movl	$32, %esi
	callq	_dme1737_sio_inb
LBB0_2:
	movq	_DME1737_ID_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	movq	_DME1737_ID_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.4:
	movq	_SCH5027_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_6:
	movl	%r15d, %edi
	movl	$7, %esi
	movl	$10, %edx
	callq	_dme1737_sio_outb
	movl	%r15d, %edi
	movl	$96, %esi
	callq	_dme1737_sio_inb
	movl	%eax, %ebx
	shll	$8, %ebx
	movl	%r15d, %edi
	movl	$97, %esi
	callq	_dme1737_sio_inb
	movl	%eax, %r12d
	orl	%ebx, %r12d
	je	LBB0_5
## %bb.7:
	leal	67(%r12), %edi
	callq	_inb
	andl	$12, %eax
	cmpl	$8, %eax
	jne	LBB0_9
## %bb.8:
	movl	$5, %edi
	callq	_HAS_FAN
	orl	%eax, (%r14)
LBB0_9:
	leal	68(%r12), %edi
	callq	_inb
	andl	$12, %eax
	cmpl	$8, %eax
	jne	LBB0_11
## %bb.10:
	movl	$5, %edi
	callq	_HAS_PWM
	orl	%eax, (%r14)
LBB0_11:
	leal	69(%r12), %edi
	callq	_inb
	andl	$12, %eax
	cmpl	$8, %eax
	jne	LBB0_13
## %bb.12:
	movl	$4, %edi
	callq	_HAS_FAN
	orl	%eax, (%r14)
LBB0_13:
	addl	$70, %r12d
	movl	%r12d, %edi
	callq	_inb
	andl	$12, %eax
	xorl	%ebx, %ebx
	cmpl	$8, %eax
	jne	LBB0_15
## %bb.14:
	movl	$4, %edi
	callq	_HAS_PWM
	orl	%eax, (%r14)
	jmp	LBB0_15
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%r15d, %edi
	callq	_dme1737_sio_exit
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_force_id,4,2                   ## @force_id
	.comm	_DME1737_ID_1,4,2               ## @DME1737_ID_1
	.comm	_DME1737_ID_2,4,2               ## @DME1737_ID_2
	.comm	_SCH5027_ID,4,2                 ## @SCH5027_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_dme1737_i2c_get_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dme1737_i2c_get_features
_dme1737_i2c_get_features:              ; @dme1737_i2c_get_features
	.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	x20, x1
	mov	x19, x0
	bl	_dme1737_sio_enter
Lloh0:
	adrp	x8, _force_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _force_id@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #32
	bl	_dme1737_sio_inb
LBB0_2:
Lloh3:
	adrp	x8, _DME1737_ID_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DME1737_ID_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DME1737_ID_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DME1737_ID_2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SCH5027_ID@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SCH5027_ID@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_12
; %bb.3:
	mov	x0, x19
	mov	w1, #7
	mov	w2, #10
	bl	_dme1737_sio_outb
	mov	x0, x19
	mov	w1, #96
	bl	_dme1737_sio_inb
	mov	x21, x0
	mov	x0, x19
	mov	w1, #97
	bl	_dme1737_sio_inb
	orr	w21, w0, w21, lsl #8
	cbz	w21, LBB0_12
; %bb.4:
	add	w0, w21, #67
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #5
	bl	_HAS_FAN
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
LBB0_6:
	add	w0, w21, #68
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #5
	bl	_HAS_PWM
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
LBB0_8:
	add	w0, w21, #69
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #4
	bl	_HAS_FAN
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
LBB0_10:
	add	w0, w21, #70
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_14
; %bb.11:
	mov	w0, #4
	bl	_HAS_PWM
	mov	w21, #0
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x19
	bl	_dme1737_sio_exit
	mov	x0, x21
	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
LBB0_14:
	mov	w21, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_force_id,4,2                   ; @force_id
	.comm	_DME1737_ID_1,4,2               ; @DME1737_ID_1
	.comm	_DME1737_ID_2,4,2               ; @DME1737_ID_2
	.comm	_SCH5027_ID,4,2                 ; @SCH5027_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dme1737_i2c_get_features
.subsections_via_symbols
