	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmard06_probe
_dmard06_probe:                         ## @dmard06_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r14, 8(%rax)
	movq	_DMARD06_CHIP_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_DMARD05_CHIP_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_11
## %bb.7:
	movq	_DMARD06_CHIP_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_11
## %bb.8:
	movq	_DMARD07_CHIP_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%ebx, (%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 24(%r15)
	movq	_DMARD06_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_dmard06_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	movq	_dmard06_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C check functionality failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMARD06_CHIP_ID_REG,4,2        ## @DMARD06_CHIP_ID_REG
L_.str.2:                               ## @.str.2
	.asciz	"Error reading chip id: %d\n"

	.comm	_DMARD05_CHIP_ID,4,2            ## @DMARD05_CHIP_ID
	.comm	_DMARD06_CHIP_ID,4,2            ## @DMARD06_CHIP_ID
	.comm	_DMARD07_CHIP_ID,4,2            ## @DMARD07_CHIP_ID
L_.str.3:                               ## @.str.3
	.asciz	"Invalid chip id: %02d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DMARD06_DRV_NAME,4,2           ## @DMARD06_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_dmard06_channels,4,2           ## @dmard06_channels
	.comm	_dmard06_info,4,2               ## @dmard06_info
	.no_dead_strip	_dmard06_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmard06_probe
_dmard06_probe:                         ; @dmard06_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
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	str	x19, [x0, #8]
Lloh3:
	adrp	x8, _DMARD06_CHIP_ID_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMARD06_CHIP_ID_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _DMARD05_CHIP_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMARD05_CHIP_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DMARD06_CHIP_ID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMARD06_CHIP_ID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _DMARD07_CHIP_ID@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DMARD07_CHIP_ID@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	ccmp	w21, w10, #4, ne
	b.ne	LBB0_8
; %bb.4:
	str	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x20, #24]
Lloh15:
	adrp	x8, _DMARD06_DRV_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMARD06_DRV_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #20]
Lloh18:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _dmard06_channels@GOTPAGE
Lloh22:
	ldr	x9, [x9, _dmard06_channels@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh24:
	adrp	x8, _dmard06_info@GOTPAGE
Lloh25:
	ldr	x8, [x8, _dmard06_info@GOTPAGEOFF]
	str	x8, [x20]
	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
	add	sp, sp, #64
	b	_devm_iio_device_register
LBB0_5:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _ENXIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	str	x21, [sp]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_8:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh38:
	adrp	x8, _ENODEV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C check functionality failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMARD06_CHIP_ID_REG,4,2        ; @DMARD06_CHIP_ID_REG
l_.str.2:                               ; @.str.2
	.asciz	"Error reading chip id: %d\n"

	.comm	_DMARD05_CHIP_ID,4,2            ; @DMARD05_CHIP_ID
	.comm	_DMARD06_CHIP_ID,4,2            ; @DMARD06_CHIP_ID
	.comm	_DMARD07_CHIP_ID,4,2            ; @DMARD07_CHIP_ID
l_.str.3:                               ; @.str.3
	.asciz	"Invalid chip id: %02d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DMARD06_DRV_NAME,4,2           ; @DMARD06_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_dmard06_channels,4,2           ; @dmard06_channels
	.comm	_dmard06_info,4,2               ; @dmard06_info
	.no_dead_strip	_dmard06_probe
.subsections_via_symbols
