	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_iproc_i2c_probe
_bcm_iproc_i2c_probe:                   ## @bcm_iproc_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, (%rbx)
	leaq	80(%rbx), %rdi
	callq	_init_completion
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	8(%rbx), %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 72(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	72(%rbx), %rdi
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movslq	(%rbx), %rax
	movq	_IPROC_I2C_NIC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_12
## %bb.8:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	8(%rbx), %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 64(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	64(%rbx), %rdi
	jmp	LBB0_3
LBB0_10:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	60(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	leaq	56(%rbx), %rdi
	callq	_spin_lock_init
	xorps	%xmm0, %xmm0
	movq	_bcm_iproc_algo@GOTPCREL(%rip), %rax
	movups	%xmm0, (%rax)
LBB0_12:
	movq	%rbx, %rdi
	callq	_bcm_iproc_i2c_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.13:
	movq	%rbx, %rdi
	callq	_bcm_iproc_i2c_cfg_speed
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	jle	LBB0_18
## %bb.15:
	movl	%eax, %r12d
	movq	_bcm_iproc_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %r8d
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_20
## %bb.16:
	movl	%r12d, 4(%rbx)
	jmp	LBB0_19
LBB0_17:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
LBB0_19:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bcm_iproc_i2c_enable_disable
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movl	48(%rbx), %r12d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_of_node_full_name
	leaq	L_.str.4(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_bcm_iproc_algo@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_bcm_iproc_i2c_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_add_adapter                ## TAILCALL
LBB0_20:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IPROC_I2C_NIC,8,3              ## @IPROC_I2C_NIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"brcm,ape-hsls-addr-mask"

L_.str.1:                               ## @.str.1
	.asciz	"'brcm,ape-hsls-addr-mask' missing\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bcm_iproc_algo,16,3            ## @bcm_iproc_algo
	.comm	_bcm_iproc_i2c_isr,4,2          ## @bcm_iproc_i2c_isr
L_.str.2:                               ## @.str.2
	.asciz	"unable to request irq %i\n"

L_.str.3:                               ## @.str.3
	.asciz	"no irq resource, falling back to poll mode\n"

L_.str.4:                               ## @.str.4
	.asciz	"Broadcom iProc (%s)"

	.comm	_bcm_iproc_i2c_quirks,4,2       ## @bcm_iproc_i2c_quirks
	.no_dead_strip	_bcm_iproc_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_iproc_i2c_probe
_bcm_iproc_i2c_probe:                   ; @bcm_iproc_i2c_probe
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20]
	add	x0, x20, #80
	bl	_init_completion
Lloh3:
	adrp	x21, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	ldr	x0, [x20, #8]
	bl	_devm_ioremap_resource
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x20, #72]
LBB0_3:
	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
	b	_PTR_ERR
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
	ldrsw	x8, [x20]
Lloh7:
	adrp	x9, _IPROC_I2C_NIC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IPROC_I2C_NIC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x1, x0
	ldr	x0, [x20, #8]
	bl	_devm_ioremap_resource
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x20, #64]
	b	LBB0_3
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	add	x2, x20, #60
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_17
; %bb.11:
	add	x0, x20, #56
	bl	_spin_lock_init
Lloh12:
	adrp	x8, _bcm_iproc_algo@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bcm_iproc_algo@GOTPAGEOFF]
	stp	xzr, xzr, [x8]
LBB0_12:
	mov	x0, x20
	bl	_bcm_iproc_i2c_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.13:
	mov	x0, x20
	bl	_bcm_iproc_i2c_cfg_speed
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	ldr	x0, [x20, #8]
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.15:
Lloh14:
	adrp	x8, _bcm_iproc_i2c_isr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bcm_iproc_i2c_isr@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w4, [x19, #4]
	mov	x1, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_20
; %bb.16:
	str	w22, [x20, #4]
	b	LBB0_19
LBB0_17:
	ldr	x0, [x20, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_18:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
LBB0_19:
	mov	x0, x20
	mov	w1, #1
	bl	_bcm_iproc_i2c_enable_disable
	add	x21, x20, #16
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
	ldr	w22, [x20, #48]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_of_node_full_name
	mov	x3, x0
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
Lloh25:
	adrp	x8, _bcm_iproc_algo@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bcm_iproc_algo@GOTPAGEOFF]
Lloh27:
	adrp	x9, _bcm_iproc_i2c_quirks@GOTPAGE
Lloh28:
	ldr	x9, [x9, _bcm_iproc_i2c_quirks@GOTPAGEOFF]
	stp	x9, x8, [x20, #32]
	str	x19, [x20, #24]
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	x0, x21
	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
	b	_i2c_add_adapter
LBB0_20:
	mov	x21, x0
	ldr	x0, [x20, #8]
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IPROC_I2C_NIC,8,3              ; @IPROC_I2C_NIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"brcm,ape-hsls-addr-mask"

l_.str.1:                               ; @.str.1
	.asciz	"'brcm,ape-hsls-addr-mask' missing\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bcm_iproc_algo,16,3            ; @bcm_iproc_algo
	.comm	_bcm_iproc_i2c_isr,4,2          ; @bcm_iproc_i2c_isr
l_.str.2:                               ; @.str.2
	.asciz	"unable to request irq %i\n"

l_.str.3:                               ; @.str.3
	.asciz	"no irq resource, falling back to poll mode\n"

l_.str.4:                               ; @.str.4
	.asciz	"Broadcom iProc (%s)"

	.comm	_bcm_iproc_i2c_quirks,4,2       ; @bcm_iproc_i2c_quirks
	.no_dead_strip	_bcm_iproc_i2c_probe
.subsections_via_symbols
