	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srf04_probe
_srf04_probe:                           ## @srf04_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	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	_of_srf04_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	leaq	36(%rbx), %rdi
	callq	_init_completion
	leaq	32(%rbx), %rdi
	callq	_init_completion
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%rbx), %rdi
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	callq	_PTR_ERR
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%rbx), %rdi
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	callq	_gpiod_cansleep
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movq	16(%rbx), %rdi
	callq	_gpiod_to_irq
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_14
## %bb.12:
	movq	_srf04_handle_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rsi
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	4(%r14), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.8(%rip), %rax
	movq	%rax, (%r15)
	movq	%r14, 32(%r15)
	movq	_srf04_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_srf04_chan_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_14:
	movq	8(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%rbx), %r12d
	jmp	LBB0_5
LBB0_15:
	movl	%eax, %r12d
	movq	8(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_of_srf04_match,4,2             ## @of_srf04_match
L_.str.1:                               ## @.str.1
	.asciz	"trig"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"failed to get trig-gpios: err=%ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"echo"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.4:                               ## @.str.4
	.asciz	"failed to get echo-gpios: err=%ld\n"

L_.str.5:                               ## @.str.5
	.asciz	"cansleep-GPIOs not supported\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.6:                               ## @.str.6
	.asciz	"gpiod_to_irq: %d\n"

	.comm	_srf04_handle_irq,4,2           ## @srf04_handle_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.7:                               ## @.str.7
	.asciz	"request_irq: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"srf04"

	.comm	_srf04_iio_info,4,2             ## @srf04_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_srf04_chan_spec,4,2            ## @srf04_chan_spec
	.no_dead_strip	_srf04_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srf04_probe
_srf04_probe:                           ; @srf04_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, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	str	x19, [x0, #8]
Lloh0:
	adrp	x8, _of_srf04_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _of_srf04_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	ldr	w8, [x0]
	str	w8, [x20, #44]
	add	x0, x20, #40
	bl	_mutex_init
	add	x0, x20, #36
	bl	_init_completion
	add	x0, x20, #32
	bl	_init_completion
Lloh3:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #24]
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
Lloh14:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_9
; %bb.7:
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
LBB0_8:
	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_9:
	bl	_gpiod_cansleep
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x20, #8]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	ldr	x0, [x20, #16]
	bl	_gpiod_to_irq
	mov	x1, x0
	str	x0, [x20]
	tbnz	x0, #63, LBB0_14
; %bb.12:
Lloh25:
	adrp	x8, _srf04_handle_irq@GOTPAGE
Lloh26:
	ldr	x8, [x8, _srf04_handle_irq@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w4, [x19, #4]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x5, x21
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
Lloh34:
	adrp	x8, l_.str.8@PAGE
Lloh35:
	add	x8, x8, l_.str.8@PAGEOFF
	str	x8, [x21]
Lloh36:
	adrp	x8, _srf04_iio_info@GOTPAGE
Lloh37:
	ldr	x8, [x8, _srf04_iio_info@GOTPAGEOFF]
	stp	x8, x19, [x21, #24]
Lloh38:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _srf04_chan_spec@GOTPAGE
Lloh42:
	ldr	x9, [x9, _srf04_chan_spec@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #12]
	bl	_ARRAY_SIZE
	str	w0, [x21, #8]
	mov	x0, x19
	mov	x1, 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	_devm_iio_device_register
LBB0_14:
	ldr	x0, [x20, #8]
	str	x1, [sp]
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	ldr	w22, [x20]
	b	LBB0_5
LBB0_15:
	mov	x22, x0
	ldr	x0, [x20, #8]
	str	x22, [sp]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	b	LBB0_5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_of_srf04_match,4,2             ; @of_srf04_match
l_.str.1:                               ; @.str.1
	.asciz	"trig"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"failed to get trig-gpios: err=%ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"echo"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.4:                               ; @.str.4
	.asciz	"failed to get echo-gpios: err=%ld\n"

l_.str.5:                               ; @.str.5
	.asciz	"cansleep-GPIOs not supported\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.6:                               ; @.str.6
	.asciz	"gpiod_to_irq: %d\n"

	.comm	_srf04_handle_irq,4,2           ; @srf04_handle_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.7:                               ; @.str.7
	.asciz	"request_irq: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"srf04"

	.comm	_srf04_iio_info,4,2             ; @srf04_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_srf04_chan_spec,4,2            ; @srf04_chan_spec
	.no_dead_strip	_srf04_probe
.subsections_via_symbols
