	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1111_probe
_max1111_probe:                         ## @max1111_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, %rbx
	callq	_spi_get_device_id
	movl	(%rax), %r13d
	movl	$8, (%rbx)
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	4(%rbx), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leal	-128(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.5:
	cltq
	leaq	L_switch.table.max1111_probe(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.max1111_probe.3(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	%ecx, (%r15)
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
LBB0_6:
	movq	%r15, %rdi
	callq	_setup_transfer
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%rbx, 8(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	_max1111_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_16
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_16
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	andl	$-3, %r13d
	cmpl	$129, %r13d
	jne	LBB0_12
## %bb.10:
	movq	_max1110_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_12:
	movq	%r14, %rdi
	callq	_hwmon_device_register
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	4(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
LBB0_15:
	movq	_max1110_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	_max1111_attr_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	jmp	LBB0_16
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX1110_CTRL_SEL_SH,8,3        ## @MAX1110_CTRL_SEL_SH
	.comm	_MAX1111_CTRL_SEL_SH,8,3        ## @MAX1111_CTRL_SEL_SH
	.comm	_max1111_attr_group,4,2         ## @max1111_attr_group
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create attribute group\n"

	.comm	_max1110_attr_group,4,2         ## @max1110_attr_group
L_.str.1:                               ## @.str.1
	.asciz	"failed to create extended attribute group\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to create hwmon device\n"

	.comm	_the_max1111,8,3                ## @the_max1111
	.no_dead_strip	_max1111_probe
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.max1111_probe
L_switch.table.max1111_probe:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	8                               ## 0x8

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.max1111_probe.3
l_switch.table.max1111_probe.3:
	.quad	_MAX1111_CTRL_SEL_SH
	.quad	_MAX1110_CTRL_SEL_SH
	.quad	_MAX1111_CTRL_SEL_SH
	.quad	_MAX1110_CTRL_SEL_SH

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1111_probe
_max1111_probe:                         ; @max1111_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_spi_get_device_id
	ldr	w23, [x0]
	mov	w8, #8
	str	w8, [x21]
Lloh0:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_spi_setup
	tbnz	w0, #31, LBB0_7
; %bb.1:
	add	x19, x21, #4
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, l_switch.table.max1111_probe@PAGE
Lloh7:
	add	x9, x9, l_switch.table.max1111_probe@PAGEOFF
	ldr	w9, [x9, w8, sxtw #2]
Lloh8:
	adrp	x10, l_switch.table.max1111_probe.3@PAGE
Lloh9:
	add	x10, x10, l_switch.table.max1111_probe.3@PAGEOFF
	ldr	x8, [x10, w8, sxtw #3]
	str	w9, [x20]
	ldr	x8, [x8]
	str	x8, [x20, #24]
LBB0_4:
	mov	x0, x20
	bl	_setup_transfer
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	add	x0, x20, #16
	bl	_mutex_init
	str	x21, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
Lloh10:
	adrp	x1, _max1111_attr_group@GOTPAGE
Lloh11:
	ldr	x1, [x1, _max1111_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	cbz	w0, LBB0_10
; %bb.6:
	mov	x22, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	x22, x0
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	and	w8, w23, #0xfffffffd
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.11:
Lloh17:
	adrp	x1, _max1110_attr_group@GOTPAGE
Lloh18:
	ldr	x1, [x1, _max1110_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_create_group
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_13:
	mov	x0, x19
	bl	_hwmon_device_register
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #4]
	bl	_PTR_ERR
	mov	x22, x0
LBB0_15:
Lloh23:
	adrp	x1, _max1110_attr_group@GOTPAGE
Lloh24:
	ldr	x1, [x1, _max1110_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
Lloh25:
	adrp	x1, _max1111_attr_group@GOTPAGE
Lloh26:
	ldr	x1, [x1, _max1111_attr_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
	b	LBB0_9
LBB0_16:
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX1110_CTRL_SEL_SH,8,3        ; @MAX1110_CTRL_SEL_SH
	.comm	_MAX1111_CTRL_SEL_SH,8,3        ; @MAX1111_CTRL_SEL_SH
	.comm	_max1111_attr_group,4,2         ; @max1111_attr_group
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create attribute group\n"

	.comm	_max1110_attr_group,4,2         ; @max1110_attr_group
l_.str.1:                               ; @.str.1
	.asciz	"failed to create extended attribute group\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to create hwmon device\n"

	.comm	_the_max1111,8,3                ; @the_max1111
	.no_dead_strip	_max1111_probe
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.max1111_probe
l_switch.table.max1111_probe:
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	8                               ; 0x8

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.max1111_probe.3
l_switch.table.max1111_probe.3:
	.quad	_MAX1111_CTRL_SEL_SH
	.quad	_MAX1110_CTRL_SEL_SH
	.quad	_MAX1111_CTRL_SEL_SH
	.quad	_MAX1110_CTRL_SEL_SH

.subsections_via_symbols
