	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmstb_i2c_probe
_brcmstb_i2c_probe:                     ## @brcmstb_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %r13
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_devm_kzalloc
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 16(%r13)
	leaq	60(%r15), %rdi
	callq	_init_completion
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	16(%r13), %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 56(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	$0, -48(%rbp)
LBB0_9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%r13)
	movq	_INT_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_brcmstb_i2c_enable_disable_irq
	movl	(%r13), %esi
	movq	_brcmstb_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r8
	testq	%r8, %r8
	jne	LBB0_11
## %bb.10:
	movq	(%r12), %r8
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	16(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	$-1, (%r13)
LBB0_13:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	16(%r13), %rdi
	movq	_bsc_clk@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
LBB0_15:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_of_device_is_compatible
	movl	$4, 4(%r13)
	movq	%r13, %rdi
	callq	_brcmstb_i2c_set_bsc_reg_defaults
	addq	$24, %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13)
	movl	48(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	movl	48(%r13), %edi
	movl	$4, %edx
	callq	_strlcat
LBB0_17:
	movq	_brcmstb_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movq	%r14, 32(%r13)
	movl	(%r14), %eax
	movl	%eax, 24(%r13)
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.18:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	leaq	L_.str.7(%rip), %rdx
	cmovneq	%rax, %rdx
	movq	16(%r13), %rdi
	movl	8(%r13), %ecx
	cmpl	$0, (%r13)
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.9(%rip), %r8
	cmovnsq	%rax, %r8
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_info
	xorl	%ebx, %ebx
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt-names"

	.comm	_INT_DISABLE,4,2                ## @INT_DISABLE
	.comm	_brcmstb_i2c_isr,4,2            ## @brcmstb_i2c_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"falling back to polling mode"

L_.str.2:                               ## @.str.2
	.asciz	"clock-frequency"

L_.str.3:                               ## @.str.3
	.asciz	"setting clock-frequency@%dHz\n"

	.comm	_bsc_clk,8,3                    ## @bsc_clk
L_.str.4:                               ## @.str.4
	.asciz	"brcmstb,brcmper-i2c"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.5:                               ## @.str.5
	.asciz	"Broadcom STB : "

	.comm	_brcmstb_i2c_algo,4,2           ## @brcmstb_i2c_algo
L_.str.6:                               ## @.str.6
	.asciz	"%s@%dhz registered in %s mode\n"

L_.str.7:                               ## @.str.7
	.asciz	" "

L_.str.8:                               ## @.str.8
	.asciz	"interrupt"

L_.str.9:                               ## @.str.9
	.asciz	"polling"

	.no_dead_strip	_brcmstb_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmstb_i2c_probe
_brcmstb_i2c_probe:                     ; @brcmstb_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	x21, x0
	add	x20, x0, #8
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #1
	bl	_devm_kzalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x20, [x19, #16]
	add	x0, x19, #60
	bl	_init_completion
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	ldr	x0, [x19, #16]
	bl	_devm_ioremap_resource
	str	w0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_string
	tbz	w0, #31, LBB0_7
; %bb.6:
	str	xzr, [sp, #8]
LBB0_7:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x19]
Lloh10:
	adrp	x8, _INT_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INT_DISABLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcmstb_i2c_enable_disable_irq
Lloh13:
	adrp	x8, _brcmstb_i2c_isr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _brcmstb_i2c_isr@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	ldr	x4, [sp, #8]
	cbnz	x4, LBB0_9
; %bb.8:
	ldr	x4, [x21]
LBB0_9:
	mov	x0, x20
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_11
; %bb.10:
	ldr	x0, [x19, #16]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w8, #-1
	str	w8, [x19]
LBB0_11:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x2, x19, #8
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_property_read_u32
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x19, #16]
Lloh23:
	adrp	x21, _bsc_clk@GOTPAGE
Lloh24:
	ldr	x21, [x21, _bsc_clk@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w2, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_device_is_compatible
	mov	w8, #4
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_brcmstb_i2c_set_bsc_reg_defaults
	add	x21, x19, #24
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh29:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	ldr	w0, [x19, #48]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_15
; %bb.14:
	ldr	w0, [x19, #48]
	mov	w2, #4
	bl	_strlcat
LBB0_15:
Lloh34:
	adrp	x8, _brcmstb_i2c_algo@GOTPAGE
Lloh35:
	ldr	x8, [x8, _brcmstb_i2c_algo@GOTPAGEOFF]
	stp	x20, x8, [x19, #32]
	ldr	w8, [x20]
	str	w8, [x19, #24]
	mov	x0, x21
	bl	_i2c_add_adapter
	cbnz	w0, LBB0_4
; %bb.16:
	ldr	x0, [x19, #16]
	ldr	x8, [sp, #8]
Lloh36:
	adrp	x9, l_.str.7@PAGE
Lloh37:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	x8, #0
	csel	x2, x9, x8, eq
	ldr	w3, [x19, #8]
	ldr	w8, [x19]
Lloh38:
	adrp	x9, l_.str.9@PAGE
Lloh39:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh40:
	adrp	x10, l_.str.8@PAGE
Lloh41:
	add	x10, x10, l_.str.8@PAGEOFF
	cmp	w8, #0
	csel	x4, x10, x9, ge
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt-names"

	.comm	_INT_DISABLE,4,2                ; @INT_DISABLE
	.comm	_brcmstb_i2c_isr,4,2            ; @brcmstb_i2c_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"falling back to polling mode"

l_.str.2:                               ; @.str.2
	.asciz	"clock-frequency"

l_.str.3:                               ; @.str.3
	.asciz	"setting clock-frequency@%dHz\n"

	.comm	_bsc_clk,8,3                    ; @bsc_clk
l_.str.4:                               ; @.str.4
	.asciz	"brcmstb,brcmper-i2c"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.5:                               ; @.str.5
	.asciz	"Broadcom STB : "

	.comm	_brcmstb_i2c_algo,4,2           ; @brcmstb_i2c_algo
l_.str.6:                               ; @.str.6
	.asciz	"%s@%dhz registered in %s mode\n"

l_.str.7:                               ; @.str.7
	.asciz	" "

l_.str.8:                               ; @.str.8
	.asciz	"interrupt"

l_.str.9:                               ; @.str.9
	.asciz	"polling"

	.no_dead_strip	_brcmstb_i2c_probe
.subsections_via_symbols
