	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_i2c_get_board_info          ## -- Begin function of_i2c_get_board_info
	.p2align	4, 0x90
_of_i2c_get_board_info:                 ## @of_i2c_get_board_info
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	16(%r14), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_of_modalias_node
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movl	-36(%rbp), %eax
	movq	_I2C_TEN_BIT_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r14)
LBB0_6:
	movq	_I2C_OWN_SLAVE_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movq	_I2C_CLIENT_SLAVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r14)
LBB0_8:
	movl	%eax, (%r14)
	movq	%r15, 8(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_I2C_CLIENT_HOST_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_I2C_CLIENT_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_12:
	movl	%ebx, %eax
	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	"of_i2c: modalias failure on %pOF\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"of_i2c: invalid reg on %pOF\n"

	.comm	_I2C_TEN_BIT_ADDRESS,4,2        ## @I2C_TEN_BIT_ADDRESS
	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.comm	_I2C_OWN_SLAVE_ADDRESS,4,2      ## @I2C_OWN_SLAVE_ADDRESS
	.comm	_I2C_CLIENT_SLAVE,4,2           ## @I2C_CLIENT_SLAVE
L_.str.3:                               ## @.str.3
	.asciz	"host-notify"

	.comm	_I2C_CLIENT_HOST_NOTIFY,4,2     ## @I2C_CLIENT_HOST_NOTIFY
L_.str.4:                               ## @.str.4
	.asciz	"wakeup-source"

	.comm	_I2C_CLIENT_WAKE,4,2            ## @I2C_CLIENT_WAKE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_i2c_get_board_info          ; -- Begin function of_i2c_get_board_info
	.p2align	2
_of_i2c_get_board_info:                 ; @of_i2c_get_board_info
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #4
	bl	_of_modalias_node
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_4:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _I2C_TEN_BIT_ADDRESS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_TEN_BIT_ADDRESS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bic	w8, w8, w9
	str	w8, [sp, #12]
Lloh12:
	adrp	x9, _I2C_CLIENT_TEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_6:
Lloh15:
	adrp	x9, _I2C_OWN_SLAVE_ADDRESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I2C_OWN_SLAVE_ADDRESS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	bic	w8, w8, w9
	str	w8, [sp, #12]
Lloh18:
	adrp	x9, _I2C_CLIENT_SLAVE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I2C_CLIENT_SLAVE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_8:
	str	w8, [x19]
	str	x20, [x19, #8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	cbz	x0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _I2C_CLIENT_HOST_NOTIFY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I2C_CLIENT_HOST_NOTIFY@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_10:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_of_get_property
	mov	w22, #0
	cbz	x0, LBB0_12
; %bb.11:
Lloh28:
	adrp	x8, _I2C_CLIENT_WAKE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _I2C_CLIENT_WAKE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_12:
	mov	x0, x22
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"of_i2c: modalias failure on %pOF\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"of_i2c: invalid reg on %pOF\n"

	.comm	_I2C_TEN_BIT_ADDRESS,4,2        ; @I2C_TEN_BIT_ADDRESS
	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.comm	_I2C_OWN_SLAVE_ADDRESS,4,2      ; @I2C_OWN_SLAVE_ADDRESS
	.comm	_I2C_CLIENT_SLAVE,4,2           ; @I2C_CLIENT_SLAVE
l_.str.3:                               ; @.str.3
	.asciz	"host-notify"

	.comm	_I2C_CLIENT_HOST_NOTIFY,4,2     ; @I2C_CLIENT_HOST_NOTIFY
l_.str.4:                               ; @.str.4
	.asciz	"wakeup-source"

	.comm	_I2C_CLIENT_WAKE,4,2            ; @I2C_CLIENT_WAKE
.subsections_via_symbols
