	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83791d_init_client
_w83791d_init_client:                   ## @w83791d_init_client
	.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	%rdi, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movq	_reset@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_init@GOTPCREL(%rip), %r12
	orq	(%r12), %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_W83791D_REG_BEEP_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_w83791d_read
	movl	%eax, %ebx
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	_W83791D_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$128, %edx
	callq	_w83791d_write
LBB0_3:
	movl	(%r13), %esi
	orl	$128, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_w83791d_write
	movq	_W83791D_REG_BEEP_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_w83791d_read
	movq	(%rbx), %rcx
	movl	4(%rcx), %esi
	andl	$239, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_w83791d_write
	cmpq	$0, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.4:
	movq	_W83791D_REG_TEMP2_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_w83791d_read
	testb	$1, %al
	je	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	andl	$254, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_w83791d_write
LBB0_6:
	movq	_W83791D_REG_TEMP3_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_w83791d_read
	testb	$1, %al
	je	LBB0_8
## %bb.7:
	movl	(%r14), %esi
	andl	$254, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_w83791d_write
LBB0_8:
	movq	_W83791D_REG_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_w83791d_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$246, %eax
	movl	(%r14), %esi
	leal	1(%rax), %edx
	movq	%r15, %rdi
	callq	_w83791d_write
LBB0_9:
	xorl	%eax, %eax
	callq	_vid_which_vrm
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reset,8,3                      ## @reset
	.comm	_init,8,3                       ## @init
	.comm	_W83791D_REG_BEEP_CONFIG,4,2    ## @W83791D_REG_BEEP_CONFIG
	.comm	_W83791D_REG_CONFIG,4,2         ## @W83791D_REG_CONFIG
	.comm	_W83791D_REG_BEEP_CTRL,8,3      ## @W83791D_REG_BEEP_CTRL
	.comm	_W83791D_REG_TEMP2_CONFIG,4,2   ## @W83791D_REG_TEMP2_CONFIG
	.comm	_W83791D_REG_TEMP3_CONFIG,4,2   ## @W83791D_REG_TEMP3_CONFIG
	.no_dead_strip	_w83791d_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83791d_init_client
_w83791d_init_client:                   ; @w83791d_init_client
	.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	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
Lloh0:
	adrp	x22, _reset@GOTPAGE
Lloh1:
	ldr	x22, [x22, _reset@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _init@GOTPAGE
Lloh3:
	ldr	x23, [x23, _init@GOTPAGEOFF]
	ldr	x9, [x23]
	orr	x8, x8, x9
	cbz	x8, LBB0_9
; %bb.1:
Lloh4:
	adrp	x24, _W83791D_REG_BEEP_CONFIG@GOTPAGE
Lloh5:
	ldr	x24, [x24, _W83791D_REG_BEEP_CONFIG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_w83791d_read
	mov	x21, x0
	ldr	x8, [x22]
Lloh6:
	adrp	x22, _W83791D_REG_CONFIG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _W83791D_REG_CONFIG@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #128
	bl	_w83791d_write
LBB0_3:
	ldr	w1, [x24]
	orr	w2, w21, #0x80
	mov	x0, x20
	bl	_w83791d_write
Lloh8:
	adrp	x21, _W83791D_REG_BEEP_CTRL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _W83791D_REG_BEEP_CTRL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_w83791d_read
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	mov	w8, #239
	and	w2, w0, w8
	mov	x0, x20
	bl	_w83791d_write
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.4:
Lloh10:
	adrp	x21, _W83791D_REG_TEMP2_CONFIG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _W83791D_REG_TEMP2_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_w83791d_read
	tbz	w0, #0, LBB0_6
; %bb.5:
	ldr	w1, [x21]
	and	w2, w0, #0xfe
	mov	x0, x20
	bl	_w83791d_write
LBB0_6:
Lloh12:
	adrp	x21, _W83791D_REG_TEMP3_CONFIG@GOTPAGE
Lloh13:
	ldr	x21, [x21, _W83791D_REG_TEMP3_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_w83791d_read
	tbz	w0, #0, LBB0_8
; %bb.7:
	ldr	w1, [x21]
	and	w2, w0, #0xfe
	mov	x0, x20
	bl	_w83791d_write
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83791d_read
	mov	w8, #246
	and	w8, w0, w8
	ldr	w1, [x22]
	orr	w2, w8, #0x1
	mov	x0, x20
	bl	_w83791d_write
LBB0_9:
	bl	_vid_which_vrm
	str	w0, [x19]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_reset,8,3                      ; @reset
	.comm	_init,8,3                       ; @init
	.comm	_W83791D_REG_BEEP_CONFIG,4,2    ; @W83791D_REG_BEEP_CONFIG
	.comm	_W83791D_REG_CONFIG,4,2         ; @W83791D_REG_CONFIG
	.comm	_W83791D_REG_BEEP_CTRL,8,3      ; @W83791D_REG_BEEP_CTRL
	.comm	_W83791D_REG_TEMP2_CONFIG,4,2   ; @W83791D_REG_TEMP2_CONFIG
	.comm	_W83791D_REG_TEMP3_CONFIG,4,2   ; @W83791D_REG_TEMP3_CONFIG
	.no_dead_strip	_w83791d_init_client
.subsections_via_symbols
