	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbus_i2c_probe
_cbus_i2c_probe:                        ## @cbus_i2c_probe
	.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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_gpiod_count
	cmpl	$3, %eax
	jne	LBB0_4
## %bb.6:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	32(%r15), %rdi
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	24(%r15), %rdi
	jmp	LBB0_8
LBB0_11:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	16(%r15), %rdi
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	movq	32(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_gpiod_set_consumer_name
	movq	24(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_gpiod_set_consumer_name
	movq	16(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_gpiod_set_consumer_name
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	%r12, 32(%r14)
	movl	(%r12), %eax
	movl	%eax, 24(%r14)
	movl	4(%r12), %eax
	movl	%eax, 20(%r14)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_cbus_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	%r12, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_adapdata
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_add_numbered_adapter       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CBUS clk"

L_.str.1:                               ## @.str.1
	.asciz	"CBUS dat"

L_.str.2:                               ## @.str.2
	.asciz	"CBUS sel"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_HZ,4,2                         ## @HZ
	.comm	_cbus_i2c_algo,4,2              ## @cbus_i2c_algo
L_.str.3:                               ## @.str.3
	.asciz	"CBUS I2C adapter"

	.no_dead_strip	_cbus_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbus_i2c_probe
_cbus_i2c_probe:                        ; @cbus_i2c_probe
	.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
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	x1, #0
	bl	_gpiod_count
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_devm_gpiod_get_index
	str	x0, [x21, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x21, #32]
	b	LBB0_12
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_8:
Lloh9:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	bl	_devm_gpiod_get_index
	str	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x21, #24]
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #2
	bl	_devm_gpiod_get_index
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x0, [x21, #16]
LBB0_12:
	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	_PTR_ERR
LBB0_13:
	ldr	x0, [x21, #32]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gpiod_set_consumer_name
	ldr	x0, [x21, #24]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_gpiod_set_consumer_name
	ldr	x0, [x21, #16]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_gpiod_set_consumer_name
Lloh21:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
	str	x19, [x20, #32]
	ldr	d0, [x19]
	rev64.2s	v0, v0
	stur	d0, [x20, #20]
Lloh27:
	adrp	x8, _HZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh30:
	adrp	x8, _cbus_i2c_algo@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cbus_i2c_algo@GOTPAGEOFF]
	str	x8, [x20, #8]
	ldr	w0, [x20]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	add	x0, x21, #8
	bl	_spin_lock_init
	str	x19, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_adapdata
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	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_add_numbered_adapter
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CBUS clk"

l_.str.1:                               ; @.str.1
	.asciz	"CBUS dat"

l_.str.2:                               ; @.str.2
	.asciz	"CBUS sel"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_HZ,4,2                         ; @HZ
	.comm	_cbus_i2c_algo,4,2              ; @cbus_i2c_algo
l_.str.3:                               ; @.str.3
	.asciz	"CBUS I2C adapter"

	.no_dead_strip	_cbus_i2c_probe
.subsections_via_symbols
