	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxc6255_probe
_mxc6255_probe:                         ## @mxc6255_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	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	_mxc6255_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 8(%r12)
	movq	%rbx, (%r12)
	movq	_MXC6255_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r14, 24(%r15)
	movq	_mxc6255_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 12(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_mxc6255_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	(%r12), %rdi
	movq	_MXC6255_REG_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	andl	$31, %eax
	movq	_MXC6255_CHIP_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_5
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mxc6255_regmap_config,4,2      ## @mxc6255_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error initializing regmap\n"

	.comm	_MXC6255_DRV_NAME,4,2           ## @MXC6255_DRV_NAME
	.comm	_mxc6255_channels,4,2           ## @mxc6255_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mxc6255_info,4,2               ## @mxc6255_info
	.comm	_MXC6255_REG_CHIP_ID,4,2        ## @MXC6255_REG_CHIP_ID
L_.str.1:                               ## @.str.1
	.asciz	"Error reading chip id %d\n"

	.comm	_MXC6255_CHIP_ID,4,2            ## @MXC6255_CHIP_ID
L_.str.2:                               ## @.str.2
	.asciz	"Invalid chip id %x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"Chip id %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not register IIO device\n"

	.no_dead_strip	_mxc6255_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxc6255_probe
_mxc6255_probe:                         ; @mxc6255_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, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, _mxc6255_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mxc6255_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, 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]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_5:
	mov	x0, x20
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	stp	x21, x19, [x22]
Lloh6:
	adrp	x8, _MXC6255_DRV_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MXC6255_DRV_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	x19, [x20, #24]
Lloh9:
	adrp	x8, _mxc6255_channels@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mxc6255_channels@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	w0, [x20, #16]
	bl	_ARRAY_SIZE
Lloh12:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _mxc6255_info@GOTPAGE
Lloh16:
	ldr	x9, [x9, _mxc6255_info@GOTPAGEOFF]
	stp	w8, w0, [x20, #8]
	str	x9, [x20]
	ldr	x0, [x22]
Lloh17:
	adrp	x8, _MXC6255_REG_CHIP_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MXC6255_REG_CHIP_ID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w2, [sp, #12]
	and	w8, w2, #0x1f
Lloh20:
	adrp	x9, _MXC6255_CHIP_ID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MXC6255_CHIP_ID@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	tbnz	w0, #31, LBB0_11
; %bb.8:
	mov	w21, #0
	b	LBB0_13
LBB0_9:
	mov	x21, x0
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	str	x2, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	mov	x21, x0
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mxc6255_regmap_config,4,2      ; @mxc6255_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error initializing regmap\n"

	.comm	_MXC6255_DRV_NAME,4,2           ; @MXC6255_DRV_NAME
	.comm	_mxc6255_channels,4,2           ; @mxc6255_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mxc6255_info,4,2               ; @mxc6255_info
	.comm	_MXC6255_REG_CHIP_ID,4,2        ; @MXC6255_REG_CHIP_ID
l_.str.1:                               ; @.str.1
	.asciz	"Error reading chip id %d\n"

	.comm	_MXC6255_CHIP_ID,4,2            ; @MXC6255_CHIP_ID
l_.str.2:                               ; @.str.2
	.asciz	"Invalid chip id %x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"Chip id %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not register IIO device\n"

	.no_dead_strip	_mxc6255_probe
.subsections_via_symbols
