	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad799x_scan_direct
_ad799x_scan_direct:                    ## @ad799x_scan_direct
	.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
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	$112, %ecx
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.2:
	movl	$137, %ecx
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.3:
	movl	4(%rbx), %r14d
	movl	%esi, %edi
	callq	_BIT
	movl	%eax, %esi
	movq	_AD799X_CHANNEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%r14d, %esi
	jmp	LBB0_7
LBB0_6:
	movl	%esi, %edi
	callq	_BIT
	movl	%eax, %esi
	movq	_AD799X_CHANNEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	jmp	LBB0_7
LBB0_4:
	movq	_AD799X_CHANNEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_AD7997_8_READ_SINGLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_7:
	movl	8(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_smbus_read_word_swapped    ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD799X_CHANNEL_SHIFT,4,2       ## @AD799X_CHANNEL_SHIFT
	.comm	_AD7997_8_READ_SINGLE,4,2       ## @AD7997_8_READ_SINGLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad799x_scan_direct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad799x_scan_direct
_ad799x_scan_direct:                    ; @ad799x_scan_direct
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x70
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #137
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	w20, [x19, #4]
	mov	x0, x1
	bl	_BIT
Lloh0:
	adrp	x8, _AD799X_CHANNEL_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD799X_CHANNEL_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w1, w8, w20
	b	LBB0_6
LBB0_4:
	mov	x0, x1
	bl	_BIT
Lloh3:
	adrp	x8, _AD799X_CHANNEL_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD799X_CHANNEL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w1, w0, w8
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _AD799X_CHANNEL_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD799X_CHANNEL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w1, w8
Lloh9:
	adrp	x9, _AD7997_8_READ_SINGLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AD7997_8_READ_SINGLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
LBB0_6:
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_read_word_swapped
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AD799X_CHANNEL_SHIFT,4,2       ; @AD799X_CHANNEL_SHIFT
	.comm	_AD7997_8_READ_SINGLE,4,2       ; @AD7997_8_READ_SINGLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad799x_scan_direct
.subsections_via_symbols
