	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi8435_probe
_hi8435_probe:                          ## @hi8435_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	$32, %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	%r14, 24(%rax)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_gpiod_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_HI8435_CTRL_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_HI8435_CTRL_SRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_hi8435_writeb
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_hi8435_writeb
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movl	$5, %edi
	callq	_udelay
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r15, %rdi
	addq	$20, %rdi
	callq	_mutex_init
	movq	%r14, 32(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_hi8435_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_hi8435_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movl	$-1, 16(%r15)
	movq	(%r15), %rax
	movabsq	$8589934594, %rcx               ## imm = 0x200000002
	movq	%rcx, (%rax)
	movq	8(%r15), %rax
	movabsq	$17179869188, %rcx              ## imm = 0x400000004
	movq	%rcx, (%rax)
	movq	_HI8435_GOCENHYS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$518, %edx                      ## imm = 0x206
	callq	_hi8435_writew
	movq	_HI8435_SOCENHYS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$518, %edx                      ## imm = 0x206
	callq	_hi8435_writew
	movq	_hi8435_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iio_triggered_event_setup
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_hi8435_triggered_event_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_HI8435_CTRL_REG,4,2            ## @HI8435_CTRL_REG
	.comm	_HI8435_CTRL_SRST,4,2           ## @HI8435_CTRL_SRST
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_hi8435_info,4,2                ## @hi8435_info
	.comm	_hi8435_channels,4,2            ## @hi8435_channels
	.comm	_HI8435_GOCENHYS_REG,4,2        ## @HI8435_GOCENHYS_REG
	.comm	_HI8435_SOCENHYS_REG,4,2        ## @HI8435_SOCENHYS_REG
	.comm	_hi8435_trigger_handler,4,2     ## @hi8435_trigger_handler
	.comm	_hi8435_triggered_event_cleanup,4,2 ## @hi8435_triggered_event_cleanup
	.no_dead_strip	_hi8435_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi8435_probe
_hi8435_probe:                          ; @hi8435_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
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #24]
Lloh0:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_gpiod_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x22, _HI8435_CTRL_REG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HI8435_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _HI8435_CTRL_SRST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HI8435_CTRL_SRST@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_hi8435_writeb
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	bl	_hi8435_writeb
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	mov	w0, #5
	bl	_udelay
	mov	x0, x22
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	add	x0, x21, #20
	bl	_mutex_init
	str	x19, [x20, #32]
	ldr	w8, [x19]
	str	w8, [x20, #24]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
Lloh11:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _hi8435_info@GOTPAGE
Lloh15:
	ldr	x10, [x10, _hi8435_info@GOTPAGEOFF]
	stp	w9, w8, [x20, #16]
	str	x10, [x20, #8]
Lloh16:
	adrp	x8, _hi8435_channels@GOTPAGE
Lloh17:
	ldr	x8, [x8, _hi8435_channels@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	w0, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	w8, #-1
	str	w8, [x21, #16]
	movi.2s	v0, #2
	ldp	x8, x9, [x21]
	str	d0, [x8]
	movi.2s	v0, #4
	str	d0, [x9]
Lloh19:
	adrp	x8, _HI8435_GOCENHYS_REG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HI8435_GOCENHYS_REG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #518
	bl	_hi8435_writew
Lloh22:
	adrp	x8, _HI8435_SOCENHYS_REG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HI8435_SOCENHYS_REG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #518
	bl	_hi8435_writew
Lloh25:
	adrp	x8, _hi8435_trigger_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _hi8435_trigger_handler@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_iio_triggered_event_setup
	cbnz	w0, LBB0_7
; %bb.6:
Lloh28:
	adrp	x8, _hi8435_triggered_event_cleanup@GOTPAGE
Lloh29:
	ldr	x8, [x8, _hi8435_triggered_event_cleanup@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_8
LBB0_7:
	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:
	mov	x0, x19
	mov	x1, x20
	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
	b	_devm_iio_device_register
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_HI8435_CTRL_REG,4,2            ; @HI8435_CTRL_REG
	.comm	_HI8435_CTRL_SRST,4,2           ; @HI8435_CTRL_SRST
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_hi8435_info,4,2                ; @hi8435_info
	.comm	_hi8435_channels,4,2            ; @hi8435_channels
	.comm	_HI8435_GOCENHYS_REG,4,2        ; @HI8435_GOCENHYS_REG
	.comm	_HI8435_SOCENHYS_REG,4,2        ; @HI8435_SOCENHYS_REG
	.comm	_hi8435_trigger_handler,4,2     ; @hi8435_trigger_handler
	.comm	_hi8435_triggered_event_cleanup,4,2 ; @hi8435_triggered_event_cleanup
	.no_dead_strip	_hi8435_probe
.subsections_via_symbols
