	.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:
	addl	$-119, %eax
	cmpl	$18, %eax
	ja	LBB0_4
## %bb.3:
	movl	$262147, %ecx                   ## imm = 0x40003
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.5:
	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_4
## %bb.6:
	leal	67(%r12), %edi
	callq	_inb
	andl	$12, %eax
	cmpl	$8, %eax
	jne	LBB0_8
## %bb.7:
	orb	$32, (%r14)
LBB0_8:
	leal	68(%r12), %edi
	callq	_inb
	andl	$12, %eax
	cmpl	$8, %eax
	jne	LBB0_10
## %bb.9:
	orb	$32, 4(%r14)
LBB0_10:
	leal	69(%r12), %edi
	callq	_inb
	andl	$12, %eax
	cmpl	$8, %eax
	jne	LBB0_12
## %bb.11:
	orb	$16, (%r14)
LBB0_12:
	addl	$70, %r12d
	movl	%r12d, %edi
	callq	_inb
	andl	$12, %eax
	xorl	%ebx, %ebx
	cmpl	$8, %eax
	jne	LBB0_14
## %bb.13:
	orb	$16, 4(%r14)
	jmp	LBB0_14
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	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	_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:
	sub	w8, w0, #119
	cmp	w8, #18
	mov	w9, #1
	lsl	w8, w9, w8
	and	w8, w8, #0x7ffff
	and	w8, w8, #0xfffc0003
	ccmp	w8, #0, #4, ls
	b.eq	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:
	ldr	w8, [x20]
	orr	w8, w8, #0x20
	str	w8, [x20]
LBB0_6:
	add	w0, w21, #68
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #4]
	orr	w8, w8, #0x20
	str	w8, [x20, #4]
LBB0_8:
	add	w0, w21, #69
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x20]
	orr	w8, w8, #0x10
	str	w8, [x20]
LBB0_10:
	add	w0, w21, #70
	bl	_inb
	and	w8, w0, #0xc
	cmp	w8, #8
	b.ne	LBB0_13
; %bb.11:
	mov	w21, #0
	ldr	w8, [x20, #4]
	orr	w8, w8, #0x10
	str	w8, [x20, #4]
	b	LBB0_14
LBB0_12:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_13:
	mov	w21, #0
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_force_id,4,2                   ; @force_id
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dme1737_i2c_get_features
.subsections_via_symbols
