	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44000_probe
_max44000_probe:                        ## @max44000_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$8, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	_max44000_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r15), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%r14, 24(%rbx)
	movq	_max44000_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_MAX44000_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_max44000_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movl	(%r15), %edi
	movq	_MAX44000_REG_CFG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX44000_REG_CFG_RX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	_MAX44000_LED_CURRENT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_max44000_write_led_current_raw
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_MAX44000_CFG_TRIM@GOTPCREL(%rip), %rax
	movq	_MAX44000_CFG_MODE_ALS_PRX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %edi
	movq	_MAX44000_REG_CFG_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	(%r15), %edi
	movq	_MAX44000_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	_max44000_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	callq	_iio_device_register
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_7:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max44000_regmap_config,4,2     ## @max44000_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap_init failed!\n"

	.comm	_max44000_info,4,2              ## @max44000_info
	.comm	_MAX44000_DRV_NAME,4,2          ## @MAX44000_DRV_NAME
	.comm	_max44000_channels,4,2          ## @max44000_channels
	.comm	_MAX44000_REG_CFG_RX,4,2        ## @MAX44000_REG_CFG_RX
	.comm	_MAX44000_REG_CFG_RX_DEFAULT,4,2 ## @MAX44000_REG_CFG_RX_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"failed to write default CFG_RX: %d\n"

	.comm	_MAX44000_LED_CURRENT_DEFAULT,4,2 ## @MAX44000_LED_CURRENT_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"failed to write init config: %d\n"

	.comm	_MAX44000_CFG_TRIM,4,2          ## @MAX44000_CFG_TRIM
	.comm	_MAX44000_CFG_MODE_ALS_PRX,4,2  ## @MAX44000_CFG_MODE_ALS_PRX
	.comm	_MAX44000_REG_CFG_MAIN,4,2      ## @MAX44000_REG_CFG_MAIN
	.comm	_MAX44000_REG_STATUS,4,2        ## @MAX44000_REG_STATUS
L_.str.3:                               ## @.str.3
	.asciz	"failed to read init status: %d\n"

	.comm	_max44000_trigger_handler,4,2   ## @max44000_trigger_handler
L_.str.4:                               ## @.str.4
	.asciz	"iio triggered buffer setup failed\n"

	.no_dead_strip	_max44000_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44000_probe
_max44000_probe:                        ; @max44000_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
	mov	w1, #8
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
Lloh0:
	adrp	x1, _max44000_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _max44000_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [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	_PTR_ERR
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x21, #4
	bl	_mutex_init
Lloh7:
	adrp	x8, _max44000_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _max44000_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
Lloh9:
	adrp	x8, _MAX44000_DRV_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX44000_DRV_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _max44000_channels@GOTPAGE
Lloh13:
	ldr	x9, [x9, _max44000_channels@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _MAX44000_REG_CFG_RX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX44000_REG_CFG_RX@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MAX44000_REG_CFG_RX_DEFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX44000_REG_CFG_RX_DEFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_12
; %bb.5:
Lloh21:
	adrp	x8, _MAX44000_LED_CURRENT_DEFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX44000_LED_CURRENT_DEFAULT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_max44000_write_led_current_raw
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh24:
	adrp	x8, _MAX44000_CFG_TRIM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX44000_CFG_TRIM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _MAX44000_CFG_MODE_ALS_PRX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MAX44000_CFG_MODE_ALS_PRX@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x21]
Lloh30:
	adrp	x8, _MAX44000_REG_CFG_MAIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAX44000_REG_CFG_MAIN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	w0, [x21]
Lloh33:
	adrp	x8, _MAX44000_REG_STATUS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAX44000_REG_STATUS@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_15
; %bb.8:
Lloh36:
	adrp	x8, _max44000_trigger_handler@GOTPAGE
Lloh37:
	ldr	x8, [x8, _max44000_trigger_handler@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_16
; %bb.9:
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	b	LBB0_14
LBB0_10:
	mov	x22, x0
	str	x22, [sp]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_14
LBB0_12:
	mov	x22, x0
	str	x22, [sp]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
LBB0_14:
	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
	add	sp, sp, #64
	ret
LBB0_15:
	mov	x22, x0
	str	x22, [sp]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_16:
	mov	x22, x0
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max44000_regmap_config,4,2     ; @max44000_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap_init failed!\n"

	.comm	_max44000_info,4,2              ; @max44000_info
	.comm	_MAX44000_DRV_NAME,4,2          ; @MAX44000_DRV_NAME
	.comm	_max44000_channels,4,2          ; @max44000_channels
	.comm	_MAX44000_REG_CFG_RX,4,2        ; @MAX44000_REG_CFG_RX
	.comm	_MAX44000_REG_CFG_RX_DEFAULT,4,2 ; @MAX44000_REG_CFG_RX_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"failed to write default CFG_RX: %d\n"

	.comm	_MAX44000_LED_CURRENT_DEFAULT,4,2 ; @MAX44000_LED_CURRENT_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"failed to write init config: %d\n"

	.comm	_MAX44000_CFG_TRIM,4,2          ; @MAX44000_CFG_TRIM
	.comm	_MAX44000_CFG_MODE_ALS_PRX,4,2  ; @MAX44000_CFG_MODE_ALS_PRX
	.comm	_MAX44000_REG_CFG_MAIN,4,2      ; @MAX44000_REG_CFG_MAIN
	.comm	_MAX44000_REG_STATUS,4,2        ; @MAX44000_REG_STATUS
l_.str.3:                               ; @.str.3
	.asciz	"failed to read init status: %d\n"

	.comm	_max44000_trigger_handler,4,2   ; @max44000_trigger_handler
l_.str.4:                               ; @.str.4
	.asciz	"iio triggered buffer setup failed\n"

	.no_dead_strip	_max44000_probe
.subsections_via_symbols
