	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_i2c_register           ## -- Begin function cx231xx_i2c_register
	.p2align	4, 0x90
_cx231xx_i2c_register:                  ## @cx231xx_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	136(%rdi), %r14
	xorl	%edi, %edi
	cmpl	$0, 16(%r14)
	sete	%dil
	callq	_BUG_ON
	leaq	56(%rbx), %r15
	movq	_cx231xx_adap_template@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$40, %edx
	callq	_memcpy
	leaq	96(%rbx), %rdi
	movq	_cx231xx_algo@GOTPCREL(%rip), %rsi
	movl	$40, %edx
	callq	_memcpy
	leaq	16(%rbx), %r12
	movq	_cx231xx_client_template@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movl	$40, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	%rax, 88(%rbx)
	movl	80(%rbx), %edi
	movq	136(%rbx), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%rbx, 112(%rbx)
	movq	%rbx, 64(%rbx)
	leaq	4(%r14), %rsi
	movq	%r15, %rdi
	callq	_i2c_set_adapdata
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	movq	%r15, 16(%rbx)
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.3:
	movl	(%r14), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_cx231xx_warn
	jmp	LBB0_4
LBB0_1:
	movq	_i2c_scan@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cx231xx_do_i2c_scan
LBB0_4:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx231xx_adap_template,4,2      ## @cx231xx_adap_template
	.comm	_cx231xx_algo,4,2               ## @cx231xx_algo
	.comm	_cx231xx_client_template,4,2    ## @cx231xx_client_template
	.comm	_i2c_scan,8,3                   ## @i2c_scan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: i2c bus %d register FAILED\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_i2c_register           ; -- Begin function cx231xx_i2c_register
	.p2align	2
_cx231xx_i2c_register:                  ; @cx231xx_i2c_register
	.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
	ldr	x20, [x0, #136]
	ldr	w8, [x20, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x22, x19, #56
Lloh0:
	adrp	x1, _cx231xx_adap_template@GOTPAGE
Lloh1:
	ldr	x1, [x1, _cx231xx_adap_template@GOTPAGEOFF]
	mov	x0, x22
	mov	w2, #40
	bl	_memcpy
	add	x0, x19, #96
Lloh2:
	adrp	x1, _cx231xx_algo@GOTPAGE
Lloh3:
	ldr	x1, [x1, _cx231xx_algo@GOTPAGEOFF]
	mov	w2, #40
	bl	_memcpy
	add	x21, x19, #16
Lloh4:
	adrp	x1, _cx231xx_client_template@GOTPAGE
Lloh5:
	ldr	x1, [x1, _cx231xx_client_template@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #40
	bl	_memcpy
	ldr	x8, [x20, #8]
	str	x8, [x19, #88]
	ldr	w0, [x19, #80]
	ldr	x8, [x19, #136]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strlcpy
	str	x19, [x19, #112]
	str	x19, [x19, #64]
	add	x1, x20, #4
	mov	x0, x22
	bl	_i2c_set_adapdata
	mov	x0, x22
	bl	_i2c_add_adapter
	str	x22, [x19, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cx231xx_warn
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _i2c_scan@GOTPAGE
Lloh9:
	ldr	x8, [x8, _i2c_scan@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_cx231xx_do_i2c_scan
LBB0_4:
	ldr	w0, [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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cx231xx_adap_template,4,2      ; @cx231xx_adap_template
	.comm	_cx231xx_algo,4,2               ; @cx231xx_algo
	.comm	_cx231xx_client_template,4,2    ; @cx231xx_client_template
	.comm	_i2c_scan,8,3                   ; @i2c_scan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: i2c bus %d register FAILED\n"

.subsections_via_symbols
