	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmard10_probe
_dmard10_probe:                         ## @dmard10_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DMARD10_REG_STADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movq	_DMARD10_VALUE_STADR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_DMARD10_REG_STAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_DMARD10_VALUE_STAINT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%r14, (%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 32(%r15)
	movq	_dmard10_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_dmard10_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_dmard10_reset
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_dmard10_shutdown
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovsl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DMARD10_REG_STADR,4,2          ## @DMARD10_REG_STADR
	.comm	_DMARD10_VALUE_STADR,4,2        ## @DMARD10_VALUE_STADR
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DMARD10_REG_STAINT,4,2         ## @DMARD10_REG_STAINT
	.comm	_DMARD10_VALUE_STAINT,4,2       ## @DMARD10_VALUE_STAINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio allocation failed!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dmard10_info,4,2               ## @dmard10_info
L_.str.1:                               ## @.str.1
	.asciz	"dmard10"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_dmard10_channels,4,2           ## @dmard10_channels
L_.str.2:                               ## @.str.2
	.asciz	"device_register failed\n"

	.no_dead_strip	_dmard10_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmard10_probe
_dmard10_probe:                         ; @dmard10_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _DMARD10_REG_STADR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMARD10_REG_STADR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
Lloh3:
	adrp	x8, _DMARD10_VALUE_STADR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMARD10_VALUE_STADR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _DMARD10_REG_STAINT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMARD10_REG_STAINT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh9:
	adrp	x8, _DMARD10_VALUE_STAINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMARD10_VALUE_STAINT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #8
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	bl	_iio_priv
	str	x19, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh12:
	adrp	x8, _dmard10_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dmard10_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
Lloh16:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _dmard10_channels@GOTPAGE
Lloh20:
	ldr	x9, [x9, _dmard10_channels@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
	mov	x0, x19
	bl	_dmard10_reset
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_iio_device_register
	mov	x21, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_dmard10_shutdown
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w21, w0, w8, lt
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_9:
	mov	x21, x0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DMARD10_REG_STADR,4,2          ; @DMARD10_REG_STADR
	.comm	_DMARD10_VALUE_STADR,4,2        ; @DMARD10_VALUE_STADR
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DMARD10_REG_STAINT,4,2         ; @DMARD10_REG_STAINT
	.comm	_DMARD10_VALUE_STAINT,4,2       ; @DMARD10_VALUE_STAINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio allocation failed!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dmard10_info,4,2               ; @dmard10_info
l_.str.1:                               ; @.str.1
	.asciz	"dmard10"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_dmard10_channels,4,2           ; @dmard10_channels
l_.str.2:                               ; @.str.2
	.asciz	"device_register failed\n"

	.no_dead_strip	_dmard10_probe
.subsections_via_symbols
