	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_powermac_add_missing
_i2c_powermac_add_missing:              ## @i2c_powermac_add_missing
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_pmac_i2c_get_bus_node
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_device_is_compatible
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.1:
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %r9d
	leaq	-40(%rbp), %rbx
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	$70, %esi
	xorl	%edx, %edx
	movl	$67, %r8d
	callq	_i2c_smbus_xfer
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$70, %edx
	callq	_i2c_powermac_create_one
LBB0_4:
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	$71, %esi
	xorl	%edx, %edx
	movl	$67, %r8d
	callq	_i2c_smbus_xfer
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$71, %edx
	callq	_i2c_powermac_create_one
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"k2-i2c"

	.comm	_I2C_SMBUS_READ,4,2             ## @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ## @I2C_SMBUS_BYTE_DATA
L_.str.1:                               ## @.str.1
	.asciz	"MAC,pcm3052"

	.comm	_ONYX_REG_CONTROL,4,2           ## @ONYX_REG_CONTROL
	.no_dead_strip	_i2c_powermac_add_missing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_powermac_add_missing
_i2c_powermac_add_missing:              ; @i2c_powermac_add_missing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_pmac_i2c_get_bus_node
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_device_is_compatible
	cbnz	w20, LBB0_6
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x20, _I2C_SMBUS_READ@GOTPAGE
Lloh3:
	ldr	x20, [x20, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh4:
	adrp	x21, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh5:
	ldr	x21, [x21, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
	ldr	w5, [x21]
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #70
	mov	w2, #0
	mov	w4, #67
	bl	_i2c_smbus_xfer
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #70
	bl	_i2c_powermac_create_one
LBB0_4:
	ldr	w3, [x20]
	ldr	w5, [x21]
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #71
	mov	w2, #0
	mov	w4, #67
	bl	_i2c_smbus_xfer
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #71
	bl	_i2c_powermac_create_one
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"k2-i2c"

	.comm	_I2C_SMBUS_READ,4,2             ; @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ; @I2C_SMBUS_BYTE_DATA
l_.str.1:                               ; @.str.1
	.asciz	"MAC,pcm3052"

	.comm	_ONYX_REG_CONTROL,4,2           ; @ONYX_REG_CONTROL
	.no_dead_strip	_i2c_powermac_add_missing
.subsections_via_symbols
