	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxc4005_probe
_mxc4005_probe:                         ## @mxc4005_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, %r13
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_mxc4005_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r12, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 24(%r15)
	movq	%rbx, 16(%r15)
	movq	%r15, %rdi
	callq	_mxc4005_chip_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	leaq	8(%r15), %rdi
	callq	_mutex_init
	movq	%r14, 40(%r12)
	movq	_mxc4005_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 36(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 32(%r12)
	movq	_mxc4005_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_MXC4005_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_mxc4005_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mxc4005_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	cmpq	$0, (%r13)
	jle	LBB0_15
## %bb.10:
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	(%r13), %rsi
	movq	_iio_trigger_generic_data_rdy_poll@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	(%rcx), %r8d
	movq	_MXC4005_IRQ_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_2
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r15), %rdi
	movq	%r14, 8(%rdi)
	movq	_mxc4005_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r12, %rsi
	callq	_iio_trigger_set_drvdata
	movq	(%r15), %rdi
	movq	%rdi, (%r12)
	callq	_iio_trigger_get
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_devm_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mxc4005_regmap_config,4,2      ## @mxc4005_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize regmap\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize chip\n"

	.comm	_mxc4005_channels,4,2           ## @mxc4005_channels
	.comm	_mxc4005_scan_masks,4,2         ## @mxc4005_scan_masks
	.comm	_MXC4005_DRV_NAME,4,2           ## @MXC4005_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mxc4005_info,4,2               ## @mxc4005_info
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_mxc4005_trigger_handler,4,2    ## @mxc4005_trigger_handler
L_.str.2:                               ## @.str.2
	.asciz	"failed to setup iio triggered buffer\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s-dev%d"

	.comm	_iio_trigger_generic_data_rdy_poll,4,2 ## @iio_trigger_generic_data_rdy_poll
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_MXC4005_IRQ_NAME,4,2           ## @MXC4005_IRQ_NAME
L_.str.4:                               ## @.str.4
	.asciz	"failed to init threaded irq\n"

	.comm	_mxc4005_trigger_ops,4,2        ## @mxc4005_trigger_ops
L_.str.5:                               ## @.str.5
	.asciz	"failed to register trigger\n"

	.no_dead_strip	_mxc4005_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxc4005_probe
_mxc4005_probe:                         ; @mxc4005_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	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, _mxc4005_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mxc4005_regmap_config@GOTPAGEOFF]
	mov	x0, x22
	bl	_devm_regmap_init_i2c
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	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
	b	_PTR_ERR
LBB0_3:
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_clientdata
	stp	x23, x19, [x21, #16]
	mov	x0, x21
	bl	_mxc4005_chip_init
	tbnz	w0, #31, LBB0_10
; %bb.4:
	add	x0, x21, #8
	bl	_mutex_init
	str	x19, [x20, #40]
Lloh4:
	adrp	x8, _mxc4005_channels@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mxc4005_channels@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	str	w0, [x20, #36]
	bl	_ARRAY_SIZE
	str	w0, [x20, #32]
Lloh7:
	adrp	x8, _mxc4005_scan_masks@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mxc4005_scan_masks@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MXC4005_DRV_NAME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MXC4005_DRV_NAME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x20, #12]
Lloh13:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh16:
	adrp	x8, _mxc4005_info@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mxc4005_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh18:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh19:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _mxc4005_trigger_handler@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mxc4005_trigger_handler@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	bl	_devm_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_11
; %bb.5:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.6:
	ldp	w3, w2, [x20, #8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_iio_trigger_alloc
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.7:
	mov	x6, x0
Lloh26:
	adrp	x8, _iio_trigger_generic_data_rdy_poll@GOTPAGE
Lloh27:
	ldr	x8, [x8, _iio_trigger_generic_data_rdy_poll@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh31:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh35:
	adrp	x8, _MXC4005_IRQ_NAME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MXC4005_IRQ_NAME@GOTPAGEOFF]
Lloh37:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.8:
	mov	x23, x0
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_10:
	mov	x23, x0
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x23, x0
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	mov	x0, x23
	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_14:
	ldr	x0, [x21]
Lloh47:
	adrp	x8, _mxc4005_trigger_ops@GOTPAGE
Lloh48:
	ldr	x8, [x8, _mxc4005_trigger_ops@GOTPAGEOFF]
	stp	x8, x19, [x0]
	mov	x1, x20
	bl	_iio_trigger_set_drvdata
	ldr	x0, [x21]
	str	x0, [x20]
	bl	_iio_trigger_get
	ldr	x1, [x21]
	mov	x0, x19
	bl	_devm_iio_trigger_register
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	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
	b	_devm_iio_device_register
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mxc4005_regmap_config,4,2      ; @mxc4005_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize regmap\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize chip\n"

	.comm	_mxc4005_channels,4,2           ; @mxc4005_channels
	.comm	_mxc4005_scan_masks,4,2         ; @mxc4005_scan_masks
	.comm	_MXC4005_DRV_NAME,4,2           ; @MXC4005_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mxc4005_info,4,2               ; @mxc4005_info
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_mxc4005_trigger_handler,4,2    ; @mxc4005_trigger_handler
l_.str.2:                               ; @.str.2
	.asciz	"failed to setup iio triggered buffer\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s-dev%d"

	.comm	_iio_trigger_generic_data_rdy_poll,4,2 ; @iio_trigger_generic_data_rdy_poll
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_MXC4005_IRQ_NAME,4,2           ; @MXC4005_IRQ_NAME
l_.str.4:                               ; @.str.4
	.asciz	"failed to init threaded irq\n"

	.comm	_mxc4005_trigger_ops,4,2        ; @mxc4005_trigger_ops
l_.str.5:                               ; @.str.5
	.asciz	"failed to register trigger\n"

	.no_dead_strip	_mxc4005_probe
.subsections_via_symbols
