	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	xorl	%edi, %edi
	cmpl	$0, 16(%r15)
	sete	%dil
	callq	_BUG_ON
	leaq	16(%rbx), %r14
	movq	_cx231xx_adap_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	24(%rbx), %edi
	movq	32(%rbx), %rax
	movq	(%rax), %rcx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, 16(%rbx)
	leaq	12(%r15), %rsi
	movq	%r14, %rdi
	callq	_i2c_set_adapdata
	movq	%r14, %rdi
	callq	_i2c_add_adapter
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movl	8(%rbx), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx231xx_adap_template,16,3     ## @cx231xx_adap_template
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%d"

L_.str.1:                               ## @.str.1
	.asciz	"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	x21, [x0, #32]
	ldr	w8, [x21, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x20, x19, #16
Lloh0:
	adrp	x8, _cx231xx_adap_template@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx231xx_adap_template@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [x19, #16]
	ldr	w8, [x21, #8]
	str	w8, [x19, #28]
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #32]
	ldr	x3, [x8]
	ldr	w4, [x19]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	str	x19, [x19, #16]
	add	x1, x21, #12
	mov	x0, x20
	bl	_i2c_set_adapdata
	mov	x0, x20
	bl	_i2c_add_adapter
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21, #8]
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x19, #8]
LBB0_2:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cx231xx_adap_template,16,3     ; @cx231xx_adap_template
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%d"

l_.str.1:                               ; @.str.1
	.asciz	"i2c bus %d register FAILED\n"

.subsections_via_symbols
