	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function highlander_i2c_probe
_highlander_i2c_probe:                  ## @highlander_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
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_4:
	movq	%r15, %r14
	movl	(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ioremap_nocache
	movl	%eax, (%r15)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_6:
	movq	%r12, 64(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_iic_force_poll@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	cmoveq	%rax, %rbx
	movq	%rbx, 8(%r14)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	movq	_highlander_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.8:
	movq	%r14, %rdi
	callq	_highlander_i2c_irq_enable
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_notice
	movq	%r14, %rdi
	callq	_highlander_i2c_irq_disable
LBB0_10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	%r14, %rdi
	callq	_highlander_i2c_setup
	addq	$16, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movl	40(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_highlander_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r12, 24(%r14)
	movl	4(%r12), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_highlander_i2c_reset
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	callq	_i2c_add_numbered_adapter
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
LBB0_14:
	movq	%r12, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	movq	%r14, %rsi
	callq	_free_irq
LBB0_16:
	movl	(%r14), %edi
	callq	_iounmap
LBB0_17:
	movq	%r14, %rdi
	callq	_kfree
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mem resource\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_iic_force_poll,8,3             ## @iic_force_poll
	.comm	_highlander_i2c_irq,4,2         ## @highlander_i2c_irq
L_.str.1:                               ## @.str.1
	.asciz	"no IRQ, using polling mode\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
L_.str.2:                               ## @.str.2
	.asciz	"HL FPGA I2C adapter"

	.comm	_highlander_i2c_algo,4,2        ## @highlander_i2c_algo
L_.str.3:                               ## @.str.3
	.asciz	"controller didn't come up\n"

L_.str.4:                               ## @.str.4
	.asciz	"failure adding adapter\n"

	.no_dead_strip	_highlander_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function highlander_i2c_probe
_highlander_i2c_probe:                  ; @highlander_i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w22, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap_nocache
	str	w0, [x19]
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_8:
	str	x20, [x19, #64]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
Lloh15:
	adrp	x8, _iic_force_poll@GOTPAGE
Lloh16:
	ldr	x8, [x8, _iic_force_poll@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x0, x0, xzr, eq
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.9:
Lloh18:
	adrp	x8, _highlander_i2c_irq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _highlander_i2c_irq@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.10:
	mov	x0, x19
	bl	_highlander_i2c_irq_enable
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_notice
	mov	x0, x19
	bl	_highlander_i2c_irq_disable
LBB0_12:
Lloh23:
	adrp	x8, _jiffies@GOTPAGE
Lloh24:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	mov	x0, x19
	bl	_highlander_i2c_setup
	add	x22, x19, #16
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh26:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh30:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
	ldr	w0, [x19, #40]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh34:
	adrp	x8, _highlander_i2c_algo@GOTPAGE
Lloh35:
	ldr	x8, [x8, _highlander_i2c_algo@GOTPAGEOFF]
	stp	x20, x8, [x19, #24]
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_highlander_i2c_reset
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_14:
	mov	x0, x22
	bl	_i2c_add_numbered_adapter
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.15:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.17:
	mov	x1, x19
	bl	_free_irq
LBB0_18:
	ldr	w0, [x19]
	bl	_iounmap
LBB0_19:
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
LBB0_20:
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mem resource\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_iic_force_poll,8,3             ; @iic_force_poll
	.comm	_highlander_i2c_irq,4,2         ; @highlander_i2c_irq
l_.str.1:                               ; @.str.1
	.asciz	"no IRQ, using polling mode\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
l_.str.2:                               ; @.str.2
	.asciz	"HL FPGA I2C adapter"

	.comm	_highlander_i2c_algo,4,2        ; @highlander_i2c_algo
l_.str.3:                               ; @.str.3
	.asciz	"controller didn't come up\n"

l_.str.4:                               ; @.str.4
	.asciz	"failure adding adapter\n"

	.no_dead_strip	_highlander_i2c_probe
.subsections_via_symbols
