	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds620_init_client
_ds620_init_client:                     ## @ds620_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	_DS620_REG_CONF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_swapped
	movq	_DS620_REG_CONFIG_1SHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_DS620_REG_CONFIG_PO2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movl	%edx, %ecx
	orl	%esi, %ecx
	movl	(%rbx), %edi
	cmpl	$2, %edi
	je	LBB0_5
## %bb.2:
	cmpl	$1, %edi
	jne	LBB0_4
## %bb.3:
	movq	_DS620_REG_CONFIG_PO1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	jmp	LBB0_6
LBB0_4:
	notl	%esi
	andl	%esi, %edx
	jmp	LBB0_7
LBB0_5:
	movq	_DS620_REG_CONFIG_PO1@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_6:
	movl	%ecx, %edx
LBB0_7:
	movq	_DS620_REG_CONFIG_R1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_DS620_REG_CONFIG_R0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_write_word_swapped
LBB0_9:
	movq	_DS620_COM_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DS620_REG_CONF,4,2             ## @DS620_REG_CONF
	.comm	_DS620_REG_CONFIG_1SHOT,4,2     ## @DS620_REG_CONFIG_1SHOT
	.comm	_DS620_REG_CONFIG_PO2,4,2       ## @DS620_REG_CONFIG_PO2
	.comm	_DS620_REG_CONFIG_PO1,4,2       ## @DS620_REG_CONFIG_PO1
	.comm	_DS620_REG_CONFIG_R1,4,2        ## @DS620_REG_CONFIG_R1
	.comm	_DS620_REG_CONFIG_R0,4,2        ## @DS620_REG_CONFIG_R0
	.comm	_DS620_COM_START,4,2            ## @DS620_COM_START
	.no_dead_strip	_ds620_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds620_init_client
_ds620_init_client:                     ; @ds620_init_client
	.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	x19, x0
	bl	_dev_get_platdata
	mov	x20, x0
Lloh0:
	adrp	x21, _DS620_REG_CONF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DS620_REG_CONF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_word_swapped
Lloh2:
	adrp	x8, _DS620_REG_CONFIG_1SHOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DS620_REG_CONFIG_1SHOT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _DS620_REG_CONFIG_PO2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DS620_REG_CONFIG_PO2@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
	cbz	x20, LBB0_4
; %bb.1:
	orr	w9, w8, w10
	ldr	w11, [x20]
	cmp	w11, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w11, #1
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _DS620_REG_CONFIG_PO1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DS620_REG_CONFIG_PO1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w9, w8
	b	LBB0_6
LBB0_4:
	bic	w8, w8, w10
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _DS620_REG_CONFIG_PO1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DS620_REG_CONFIG_PO1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w9
LBB0_6:
Lloh14:
	adrp	x9, _DS620_REG_CONFIG_R1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DS620_REG_CONFIG_R1@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _DS620_REG_CONFIG_R0@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DS620_REG_CONFIG_R0@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	cmp	w0, w2
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_write_word_swapped
LBB0_8:
Lloh20:
	adrp	x8, _DS620_COM_START@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DS620_COM_START@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_i2c_smbus_write_byte
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DS620_REG_CONF,4,2             ; @DS620_REG_CONF
	.comm	_DS620_REG_CONFIG_1SHOT,4,2     ; @DS620_REG_CONFIG_1SHOT
	.comm	_DS620_REG_CONFIG_PO2,4,2       ; @DS620_REG_CONFIG_PO2
	.comm	_DS620_REG_CONFIG_PO1,4,2       ; @DS620_REG_CONFIG_PO1
	.comm	_DS620_REG_CONFIG_R1,4,2        ; @DS620_REG_CONFIG_R1
	.comm	_DS620_REG_CONFIG_R0,4,2        ; @DS620_REG_CONFIG_R0
	.comm	_DS620_COM_START,4,2            ; @DS620_COM_START
	.no_dead_strip	_ds620_init_client
.subsections_via_symbols
