	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83792d_detect
_w83792d_detect:                        ## @w83792d_detect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movzwl	(%rdi), %r14d
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%r13d, %r13d
	js	LBB0_3
LBB0_10:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_W83792D_REG_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_w83792d_read_value
                                        ## kill: def $eax killed $eax def $rax
	andl	$120, %eax
	leal	128(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_w83792d_write_value
	testl	%r13d, %r13d
	jle	LBB0_11
LBB0_15:
	movl	(%r15), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_3:
	movq	_W83792D_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	testb	$-128, %al
	jne	LBB0_1
## %bb.4:
	movq	_W83792D_REG_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_W83792D_REG_CHIPMAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testb	$7, %cl
	je	LBB0_5
LBB0_9:
	movq	_W83792D_REG_I2C_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	cmpl	%r14d, %eax
	je	LBB0_10
	jmp	LBB0_1
LBB0_11:
	movq	_W83792D_REG_CHIPMAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	cmpl	$92, %eax
	jne	LBB0_1
## %bb.12:
	movq	_W83792D_REG_WCHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	cmpl	$122, %eax
	je	LBB0_15
## %bb.13:
	testl	%r13d, %r13d
	jne	LBB0_1
## %bb.14:
	movq	%r12, %rdi
	callq	_i2c_adapter_id
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_dev_warn
	jmp	LBB0_1
LBB0_5:
	testb	$-128, %cl
	jne	LBB0_7
## %bb.6:
	cmpl	$163, %eax
	jne	LBB0_1
LBB0_7:
	testb	$-128, %cl
	je	LBB0_9
## %bb.8:
	cmpl	$92, %eax
	je	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_W83792D_REG_CONFIG,4,2         ## @W83792D_REG_CONFIG
	.comm	_W83792D_REG_BANK,4,2           ## @W83792D_REG_BANK
	.comm	_W83792D_REG_CHIPMAN,4,2        ## @W83792D_REG_CHIPMAN
	.comm	_W83792D_REG_I2C_ADDR,4,2       ## @W83792D_REG_I2C_ADDR
	.comm	_W83792D_REG_WCHIPID,4,2        ## @W83792D_REG_WCHIPID
	.comm	_w83792d,4,2                    ## @w83792d
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w83792d: Ignoring 'force' parameter for unknown chip at adapter %d, address 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"w83792d"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_w83792d_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83792d_detect
_w83792d_detect:                        ; @w83792d_detect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	ldrh	w19, [x0]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_check_functionality
	cbz	w0, LBB0_15
; %bb.1:
	tbnz	w22, #31, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _W83792D_REG_BANK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W83792D_REG_BANK@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_w83792d_read_value
	and	w8, w0, #0x78
	orr	w2, w8, #0x80
	mov	x0, x23
	mov	x1, x24
	bl	_w83792d_write_value
	cmp	w22, #0
	b.le	LBB0_7
LBB0_3:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_16
LBB0_4:
Lloh11:
	adrp	x8, _W83792D_REG_CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W83792D_REG_CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_w83792d_read_value
	tbnz	w0, #7, LBB0_15
; %bb.5:
Lloh14:
	adrp	x8, _W83792D_REG_BANK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _W83792D_REG_BANK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_w83792d_read_value
	mov	x24, x0
Lloh17:
	adrp	x8, _W83792D_REG_CHIPMAN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _W83792D_REG_CHIPMAN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_w83792d_read_value
	tst	w24, #0x7
	b.eq	LBB0_11
LBB0_6:
Lloh20:
	adrp	x8, _W83792D_REG_I2C_ADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _W83792D_REG_I2C_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_w83792d_read_value
	cmp	w0, w19
	b.eq	LBB0_2
	b	LBB0_15
LBB0_7:
Lloh23:
	adrp	x8, _W83792D_REG_CHIPMAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _W83792D_REG_CHIPMAN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_w83792d_read_value
	cmp	w0, #92
	b.ne	LBB0_15
; %bb.8:
Lloh26:
	adrp	x8, _W83792D_REG_WCHIPID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _W83792D_REG_WCHIPID@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_w83792d_read_value
	cmp	w0, #122
	b.eq	LBB0_3
; %bb.9:
	cbnz	w22, LBB0_15
; %bb.10:
	mov	x0, x20
	bl	_i2c_adapter_id
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_dev_warn
	b	LBB0_15
LBB0_11:
	tbnz	w24, #7, LBB0_13
; %bb.12:
	cmp	w0, #163
	b.ne	LBB0_15
LBB0_13:
	tbz	w24, #7, LBB0_6
; %bb.14:
	cmp	w0, #92
	b.eq	LBB0_6
LBB0_15:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_W83792D_REG_CONFIG,4,2         ; @W83792D_REG_CONFIG
	.comm	_W83792D_REG_BANK,4,2           ; @W83792D_REG_BANK
	.comm	_W83792D_REG_CHIPMAN,4,2        ; @W83792D_REG_CHIPMAN
	.comm	_W83792D_REG_I2C_ADDR,4,2       ; @W83792D_REG_I2C_ADDR
	.comm	_W83792D_REG_WCHIPID,4,2        ; @W83792D_REG_WCHIPID
	.comm	_w83792d,4,2                    ; @w83792d
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w83792d: Ignoring 'force' parameter for unknown chip at adapter %d, address 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"w83792d"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_w83792d_detect
.subsections_via_symbols
