	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_i2c_probe
_bcm2835_i2c_probe:                     ## @bcm2835_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 72(%rbx)
	leaq	64(%rbx), %rdi
	callq	_init_completion
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 56(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	56(%rbx), %rdi
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_10:
	movq	%r15, %rdi
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_bcm2835_i2c_register_div
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	js	LBB0_16
## %bb.15:
	movl	-44(%rbp), %esi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movl	$100000, -44(%rbp)              ## imm = 0x186A0
	movl	$100000, %esi                   ## imm = 0x186A0
LBB0_17:
	movq	%r12, %rdi
	callq	_clk_set_rate_exclusive
	testl	%eax, %eax
	js	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_22:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movl	(%rax), %r15d
	movl	%r15d, (%rbx)
	movq	_bcm2835_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_26
## %bb.24:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_25:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_26:
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_I2C_CLASS_DEPRECATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	40(%rbx), %r15d
	movl	(%r14), %edi
	callq	_of_node_full_name
	leaq	L_.str.8(%rip), %rdx
	movl	%r15d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_bcm2835_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 8(%rbx)
	movq	_BCM2835_I2C_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_bcm2835_i2c_writel
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_6
## %bb.27:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	%r14d, %r15d
	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	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get clock\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not register clock\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Could not read clock-frequency property\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not set clock frequency\n"

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't prepare clock"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.6:                               ## @.str.6
	.asciz	"No IRQ resource\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_bcm2835_i2c_isr,4,2            ## @bcm2835_i2c_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.7:                               ## @.str.7
	.asciz	"Could not request IRQ\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_DEPRECATED,4,2       ## @I2C_CLASS_DEPRECATED
L_.str.8:                               ## @.str.8
	.asciz	"bcm2835 (%s)"

	.comm	_bcm2835_i2c_algo,4,2           ## @bcm2835_i2c_algo
	.comm	_BCM2835_I2C_C,4,2              ## @BCM2835_I2C_C
	.no_dead_strip	_bcm2835_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_i2c_probe
_bcm2835_i2c_probe:                     ; @bcm2835_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	str	x19, [x20, #72]
	add	x0, x20, #64
	bl	_init_completion
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20, #56]
	b	LBB0_13
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_PTR_ERR
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.8:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_bcm2835_i2c_register_div
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.10:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	x0, x21
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_14:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	tbnz	w0, #31, LBB0_16
; %bb.15:
	ldr	w22, [sp, #12]
	b	LBB0_17
LBB0_16:
	mov	w22, #34464
	movk	w22, #1, lsl #16
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	str	w22, [sp, #12]
LBB0_17:
	mov	x0, x21
	mov	x1, x22
	bl	_clk_set_rate_exclusive
	tbnz	w0, #31, LBB0_20
; %bb.18:
	mov	x0, x21
	bl	_clk_prepare_enable
	cbz	w0, LBB0_22
; %bb.19:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_20:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_22:
Lloh23:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_25
; %bb.23:
	ldr	w21, [x0]
	str	w21, [x20]
Lloh26:
	adrp	x8, _bcm2835_i2c_isr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bcm2835_i2c_isr@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
Lloh29:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_27
; %bb.24:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_26:
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_27:
	add	x21, x20, #8
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
Lloh38:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh40:
	adrp	x9, _I2C_CLASS_DEPRECATED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _I2C_CLASS_DEPRECATED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
	ldr	w22, [x20, #40]
	ldr	w0, [x19]
	bl	_of_node_full_name
	mov	x3, x0
Lloh44:
	adrp	x2, l_.str.8@PAGE
Lloh45:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
Lloh46:
	adrp	x8, _bcm2835_i2c_algo@GOTPAGE
Lloh47:
	ldr	x8, [x8, _bcm2835_i2c_algo@GOTPAGEOFF]
	stp	x19, x8, [x20, #24]
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #8]
Lloh48:
	adrp	x8, _BCM2835_I2C_C@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BCM2835_I2C_C@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_bcm2835_i2c_writel
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.28:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get clock\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not register clock\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Could not read clock-frequency property\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not set clock frequency\n"

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't prepare clock"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.6:                               ; @.str.6
	.asciz	"No IRQ resource\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_bcm2835_i2c_isr,4,2            ; @bcm2835_i2c_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.7:                               ; @.str.7
	.asciz	"Could not request IRQ\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_DEPRECATED,4,2       ; @I2C_CLASS_DEPRECATED
l_.str.8:                               ; @.str.8
	.asciz	"bcm2835 (%s)"

	.comm	_bcm2835_i2c_algo,4,2           ; @bcm2835_i2c_algo
	.comm	_BCM2835_I2C_C,4,2              ; @BCM2835_I2C_C
	.no_dead_strip	_bcm2835_i2c_probe
.subsections_via_symbols
