	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3935_probe
_as3935_probe:                          ## @as3935_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, %r12
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rbx
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, 48(%rax)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	leaq	40(%r15), %rdi
	callq	_mutex_init
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	$0, (%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_dev_warn
LBB0_6:
	movq	(%r15), %rdx
	movq	_MAX_PF_CAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_10
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_10:
	leaq	8(%r15), %r13
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	(%r13), %rdx
	movq	_AS3935_NFLWDTH_MASK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	movq	%r12, (%r14)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_as3935_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 32(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 28(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_as3935_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_iio_trigger_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movq	%rax, %rbx
	movq	%rax, 32(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 24(%r15)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iio_trigger_set_drvdata
	movq	_iio_interrupt_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_devm_iio_trigger_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_17:
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_as3935_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_16:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r15, %rdi
	callq	_calibrate_as3935
	addq	$16, %r15
	movq	_as3935_event_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_as3935_stop_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_devm_add_action
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.20:
	movl	8(%r12), %ebx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_dev_name
	movq	_as3935_interrupt_handler@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_16
LBB0_22:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_24
## %bb.23:
	movl	%eax, %r14d
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get event interrupt\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ams,tuning-capacitor-pf"

L_.str.2:                               ## @.str.2
	.asciz	"no tuning-capacitor-pf set, defaulting to %d"

	.comm	_MAX_PF_CAP,8,3                 ## @MAX_PF_CAP
L_.str.3:                               ## @.str.3
	.asciz	"wrong tuning-capacitor-pf setting of %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"ams,nflwdth"

	.comm	_AS3935_NFLWDTH_MASK,8,3        ## @AS3935_NFLWDTH_MASK
L_.str.5:                               ## @.str.5
	.asciz	"invalid nflwdth setting of %d\n"

	.comm	_as3935_channels,4,2            ## @as3935_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_as3935_info,4,2                ## @as3935_info
L_.str.6:                               ## @.str.6
	.asciz	"%s-dev%d"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_iio_interrupt_trigger_ops,4,2  ## @iio_interrupt_trigger_ops
L_.str.7:                               ## @.str.7
	.asciz	"failed to register trigger\n"

	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_as3935_trigger_handler,4,2     ## @as3935_trigger_handler
L_.str.8:                               ## @.str.8
	.asciz	"cannot setup iio trigger\n"

	.comm	_as3935_event_work,4,2          ## @as3935_event_work
	.comm	_as3935_stop_work,4,2           ## @as3935_stop_work
	.comm	_as3935_interrupt_handler,4,2   ## @as3935_interrupt_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
L_.str.9:                               ## @.str.9
	.asciz	"unable to request irq\n"

L_.str.10:                              ## @.str.10
	.asciz	"unable to register device\n"

	.no_dead_strip	_as3935_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3935_probe
_as3935_probe:                          ; @as3935_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x22, [x19]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #48]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	add	x0, x21, #40
	bl	_mutex_init
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_4
; %bb.3:
	str	xzr, [x21]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_dev_warn
LBB0_4:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _MAX_PF_CAP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_PF_CAP@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.5:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	add	x23, x21, #8
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_of_property_read_u32
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	x8, [x23]
Lloh15:
	adrp	x9, _AS3935_NFLWDTH_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AS3935_NFLWDTH_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_11
; %bb.10:
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_11:
	str	x19, [x20]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
	str	w8, [x20, #12]
Lloh20:
	adrp	x8, _as3935_channels@GOTPAGE
Lloh21:
	ldr	x8, [x8, _as3935_channels@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	str	w0, [x20, #32]
	bl	_ARRAY_SIZE
Lloh23:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #24]
Lloh26:
	adrp	x8, _as3935_info@GOTPAGE
Lloh27:
	ldr	x8, [x8, _as3935_info@GOTPAGEOFF]
	str	x8, [x20, #16]
	ldp	w3, w2, [x20, #8]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_iio_trigger_alloc
	cbz	x0, LBB0_14
; %bb.12:
	mov	x22, x0
Lloh30:
	adrp	x8, _jiffies@GOTPAGE
Lloh31:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _HZ@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	sub	x8, x8, x9
	stp	x8, x0, [x21, #24]
	ldr	x8, [x20]
	str	x8, [x0, #8]
	mov	x1, x20
	bl	_iio_trigger_set_drvdata
Lloh36:
	adrp	x8, _iio_interrupt_trigger_ops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _iio_interrupt_trigger_ops@GOTPAGEOFF]
	str	x8, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_iio_trigger_register
	cbz	w0, LBB0_17
; %bb.13:
	mov	x22, x0
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_14:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh42:
	adrp	x8, _iio_pollfunc_store_time@GOTPAGE
Lloh43:
	ldr	x8, [x8, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x8, _as3935_trigger_handler@GOTPAGE
Lloh46:
	ldr	x8, [x8, _as3935_trigger_handler@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	bl	_devm_iio_triggered_buffer_setup
	cbz	w0, LBB0_20
; %bb.18:
	mov	x22, x0
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_16
LBB0_20:
	mov	x0, x21
	bl	_calibrate_as3935
	add	x0, x21, #16
Lloh50:
	adrp	x8, _as3935_event_work@GOTPAGE
Lloh51:
	ldr	x8, [x8, _as3935_event_work@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh53:
	adrp	x8, _as3935_stop_work@GOTPAGE
Lloh54:
	ldr	x8, [x8, _as3935_stop_work@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.21:
	ldr	w21, [x19, #8]
Lloh56:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh57:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh58:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
Lloh59:
	adrp	x2, _as3935_interrupt_handler@GOTPAGE
Lloh60:
	ldr	x2, [x2, _as3935_interrupt_handler@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_23
; %bb.22:
	mov	x22, x0
Lloh61:
	adrp	x1, l_.str.9@PAGE
Lloh62:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	tbnz	w0, #31, LBB0_25
; %bb.24:
	mov	w22, #0
	b	LBB0_16
LBB0_25:
	mov	x22, x0
Lloh63:
	adrp	x1, l_.str.10@PAGE
Lloh64:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get event interrupt\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ams,tuning-capacitor-pf"

l_.str.2:                               ; @.str.2
	.asciz	"no tuning-capacitor-pf set, defaulting to %d"

	.comm	_MAX_PF_CAP,8,3                 ; @MAX_PF_CAP
l_.str.3:                               ; @.str.3
	.asciz	"wrong tuning-capacitor-pf setting of %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"ams,nflwdth"

	.comm	_AS3935_NFLWDTH_MASK,8,3        ; @AS3935_NFLWDTH_MASK
l_.str.5:                               ; @.str.5
	.asciz	"invalid nflwdth setting of %d\n"

	.comm	_as3935_channels,4,2            ; @as3935_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_as3935_info,4,2                ; @as3935_info
l_.str.6:                               ; @.str.6
	.asciz	"%s-dev%d"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_iio_interrupt_trigger_ops,4,2  ; @iio_interrupt_trigger_ops
l_.str.7:                               ; @.str.7
	.asciz	"failed to register trigger\n"

	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_as3935_trigger_handler,4,2     ; @as3935_trigger_handler
l_.str.8:                               ; @.str.8
	.asciz	"cannot setup iio trigger\n"

	.comm	_as3935_event_work,4,2          ; @as3935_event_work
	.comm	_as3935_stop_work,4,2           ; @as3935_stop_work
	.comm	_as3935_interrupt_handler,4,2   ; @as3935_interrupt_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
l_.str.9:                               ; @.str.9
	.asciz	"unable to request irq\n"

l_.str.10:                              ; @.str.10
	.asciz	"unable to register device\n"

	.no_dead_strip	_as3935_probe
.subsections_via_symbols
