	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_powermac_get_addr
_i2c_powermac_get_addr:                 ## @i2c_powermac_get_addr
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$4, -20(%rbp)
	jae	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$4, -20(%rbp)
	jb	LBB0_5
LBB0_2:
	movq	%rax, %rdi
	callq	_be32_to_cpup
	shrl	%eax
	andl	$127, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_node_name_eq
	movq	%rax, %rcx
	movl	$96, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_node_name_eq
	movq	%rax, %rcx
	movl	$52, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dev_warn
	movl	$-1, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"i2c-address"

L_.str.2:                               ## @.str.2
	.asciz	"cereal"

L_.str.3:                               ## @.str.3
	.asciz	"deq"

L_.str.4:                               ## @.str.4
	.asciz	"No i2c address for %pOF\n"

	.no_dead_strip	_i2c_powermac_get_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_powermac_get_addr
_i2c_powermac_get_addr:                 ; @i2c_powermac_get_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_of_get_property
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #4, #0, ne
	b.hs	LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_of_get_property
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.lo	LBB0_5
LBB0_3:
	bl	_be32_to_cpup
	ubfx	w0, w0, #1, #7
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_of_node_name_eq
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #96
	b	LBB0_4
LBB0_7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_of_node_name_eq
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #52
	b	LBB0_4
LBB0_9:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_warn
	mov	w0, #-1
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"i2c-address"

l_.str.2:                               ; @.str.2
	.asciz	"cereal"

l_.str.3:                               ; @.str.3
	.asciz	"deq"

l_.str.4:                               ; @.str.4
	.asciz	"No i2c address for %pOF\n"

	.no_dead_strip	_i2c_powermac_get_addr
.subsections_via_symbols
