	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stk1160_i2c_register           ## -- Begin function stk1160_i2c_register
	.p2align	4, 0x90
_stk1160_i2c_register:                  ## @stk1160_i2c_register
	.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
	movq	%rdi, %rbx
	movq	_adap_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%rdi)
	movl	28(%rdi), %eax
	movl	%eax, 12(%rdi)
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	%rbx, (%rbx)
	leaq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, 16(%rbx)
	movq	_STK1160_SICTL_CD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_stk1160_write_reg
	movq	_STK1160_ASIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$3, %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stk1160_write_reg
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_stk1160_err
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adap_template,16,3             ## @adap_template
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stk1160"

L_.str.1:                               ## @.str.1
	.asciz	"cannot add i2c adapter (%d)\n"

	.comm	_client_template,8,3            ## @client_template
	.comm	_STK1160_SICTL_CD,8,3           ## @STK1160_SICTL_CD
	.comm	_STK1160_ASIC,8,3               ## @STK1160_ASIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stk1160_i2c_register           ; -- Begin function stk1160_i2c_register
	.p2align	2
_stk1160_i2c_register:                  ; @stk1160_i2c_register
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _adap_template@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adap_template@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [x0]
	ldr	w8, [x0, #28]
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	str	x19, [x19]
	add	x1, x19, #24
	mov	x0, x19
	bl	_i2c_set_adapdata
	mov	x0, x19
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	x19, [x19, #16]
Lloh5:
	adrp	x8, _STK1160_SICTL_CD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STK1160_SICTL_CD@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #15
	bl	_stk1160_write_reg
Lloh8:
	adrp	x8, _STK1160_ASIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STK1160_ASIC@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, #3
	mov	x0, x19
	mov	w2, #0
	bl	_stk1160_write_reg
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_stk1160_err
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_adap_template,16,3             ; @adap_template
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stk1160"

l_.str.1:                               ; @.str.1
	.asciz	"cannot add i2c adapter (%d)\n"

	.comm	_client_template,8,3            ; @client_template
	.comm	_STK1160_SICTL_CD,8,3           ; @STK1160_SICTL_CD
	.comm	_STK1160_ASIC,8,3               ; @STK1160_ASIC
.subsections_via_symbols
