	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_rc_probe
_st_rc_probe:                           ## @st_rc_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
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	xorl	%ebx, %ebx
	movq	(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_15
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%rbx, %r14
	movq	-48(%rbp), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rbx
	jmp	LBB0_15
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r13d
	jmp	LBB0_16
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movl	%eax, (%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r14, %rbx
	je	LBB0_17
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r15), %rdi
LBB0_13:
	callq	_PTR_ERR
LBB0_14:
	movl	%eax, %r13d
LBB0_15:
	movq	%rbx, %rdi
	callq	_rc_free_device
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	js	LBB0_14
## %bb.18:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	40(%r15), %rdi
	jmp	LBB0_13
LBB0_21:
	movq	40(%r15), %rax
	cmpl	$0, (%r15)
	leaq	64(%rax), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, 48(%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_reset_control_get_optional_exclusive
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	32(%r15), %rdi
	jmp	LBB0_13
LBB0_23:
	movq	%r12, 24(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_st_rc_hardware_init
	movq	_RC_PROTO_BIT_ALL_IR_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	$100, (%rbx)
	movq	_MAX_SYMB_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_US_TO_NS
	movl	%eax, 40(%rbx)
	movq	%r15, 32(%rbx)
	movq	_st_rc_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_st_rc_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_IR_ST_NAME@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	_RC_MAP_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_rc_register_device
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_27
## %bb.24:
	movq	%rbx, 16(%r15)
	movl	4(%r15), %esi
	movq	_st_rc_rx_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testq	%rax, %rax
	js	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_dev_pm_set_wake_irq
	movq	%rbx, %rdi
	callq	_st_rc_send_lirc_timeout
	cmpl	$0, (%r15)
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	jmp	LBB0_16
LBB0_26:
	movl	4(%r15), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	xorl	%r13d, %r13d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_rc_unregister_device
	xorl	%ebx, %ebx
LBB0_27:
	movq	8(%r15), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx-mode"

L_.str.1:                               ## @.str.1
	.asciz	"uhf"

L_.str.2:                               ## @.str.2
	.asciz	"infrared"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported rx mode [%s]\n"

L_.str.4:                               ## @.str.4
	.asciz	"System clock not found\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ## @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_MAX_SYMB_TIME,4,2              ## @MAX_SYMB_TIME
	.comm	_st_rc_open,4,2                 ## @st_rc_open
	.comm	_st_rc_close,4,2                ## @st_rc_close
	.comm	_IR_ST_NAME,4,2                 ## @IR_ST_NAME
	.comm	_RC_MAP_EMPTY,4,2               ## @RC_MAP_EMPTY
L_.str.5:                               ## @.str.5
	.asciz	"ST Remote Control Receiver"

	.comm	_st_rc_rx_interrupt,4,2         ## @st_rc_rx_interrupt
L_.str.6:                               ## @.str.6
	.asciz	"IRQ %d register failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"setup in %s mode\n"

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

L_.str.9:                               ## @.str.9
	.asciz	"IR"

L_.str.10:                              ## @.str.10
	.asciz	"Unable to register device (%d)\n"

	.no_dead_strip	_st_rc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_rc_probe
_st_rc_probe:                           ; @st_rc_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
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x24]
	ldr	x23, [x0]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	neg	w22, w22
	cbz	x23, LBB0_14
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x23
	bl	_of_property_read_string
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	x23, [sp, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.5:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.6:
	str	x23, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_8:
	mov	w8, #1
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	str	w8, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.11:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #8]
LBB0_12:
	bl	_PTR_ERR
LBB0_13:
	mov	x22, x0
LBB0_14:
	mov	x0, x20
	bl	_rc_free_device
	str	x22, [sp]
Lloh21:
	adrp	x1, l_.str.10@PAGE
Lloh22:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_15:
	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_16:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x21, #4]
	tbnz	w0, #31, LBB0_13
; %bb.17:
Lloh23:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x21, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x21, #40]
	b	LBB0_12
LBB0_19:
	ldr	w8, [x21]
	ldr	x9, [x21, #40]
	add	x10, x9, #64
	cmp	w8, #0
	csel	x8, x9, x10, eq
	str	x8, [x21, #48]
	mov	x0, x19
	mov	x1, #0
	bl	_reset_control_get_optional_exclusive
	str	x0, [x21, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x0, [x21, #32]
	b	LBB0_12
LBB0_21:
	str	x19, [x21, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x21
	bl	_st_rc_hardware_init
Lloh26:
	adrp	x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20, #44]
	mov	w8, #100
	str	w8, [x20]
Lloh29:
	adrp	x8, _MAX_SYMB_TIME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAX_SYMB_TIME@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_US_TO_NS
	str	w0, [x20, #40]
Lloh32:
	adrp	x8, _st_rc_open@GOTPAGE
Lloh33:
	ldr	x8, [x8, _st_rc_open@GOTPAGEOFF]
	str	x21, [x20, #32]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _st_rc_close@GOTPAGE
Lloh36:
	ldr	x9, [x9, _st_rc_close@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh38:
	adrp	x23, _IR_ST_NAME@GOTPAGE
Lloh39:
	ldr	x23, [x23, _IR_ST_NAME@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh40:
	adrp	x9, _RC_MAP_EMPTY@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RC_MAP_EMPTY@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh43:
	adrp	x8, l_.str.5@PAGE
Lloh44:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_rc_register_device
	mov	x22, x0
	tbnz	w0, #31, LBB0_25
; %bb.22:
	str	x20, [x21, #16]
	ldr	w1, [x21, #4]
Lloh45:
	adrp	x8, _st_rc_rx_interrupt@GOTPAGE
Lloh46:
	ldr	x8, [x8, _st_rc_rx_interrupt@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	ldr	w4, [x23]
	mov	x0, x19
	mov	w3, #0
	mov	x5, x21
	bl	_devm_request_irq
	tbnz	x0, #63, LBB0_24
; %bb.23:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_dev_pm_set_wake_irq
	mov	x0, x20
	bl	_st_rc_send_lirc_timeout
	ldr	w8, [x21]
Lloh48:
	adrp	x9, l_.str.8@PAGE
Lloh49:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh50:
	adrp	x10, l_.str.9@PAGE
Lloh51:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh52:
	adrp	x1, l_.str.7@PAGE
Lloh53:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_15
LBB0_24:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh54:
	adrp	x1, l_.str.6@PAGE
Lloh55:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x24]
	neg	w22, w8
	mov	x0, x20
	bl	_rc_unregister_device
	mov	x20, #0
LBB0_25:
	ldr	x0, [x21, #8]
	bl	_clk_disable_unprepare
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx-mode"

l_.str.1:                               ; @.str.1
	.asciz	"uhf"

l_.str.2:                               ; @.str.2
	.asciz	"infrared"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported rx mode [%s]\n"

l_.str.4:                               ; @.str.4
	.asciz	"System clock not found\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ; @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_MAX_SYMB_TIME,4,2              ; @MAX_SYMB_TIME
	.comm	_st_rc_open,4,2                 ; @st_rc_open
	.comm	_st_rc_close,4,2                ; @st_rc_close
	.comm	_IR_ST_NAME,4,2                 ; @IR_ST_NAME
	.comm	_RC_MAP_EMPTY,4,2               ; @RC_MAP_EMPTY
l_.str.5:                               ; @.str.5
	.asciz	"ST Remote Control Receiver"

	.comm	_st_rc_rx_interrupt,4,2         ; @st_rc_rx_interrupt
l_.str.6:                               ; @.str.6
	.asciz	"IRQ %d register failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"setup in %s mode\n"

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

l_.str.9:                               ; @.str.9
	.asciz	"IR"

l_.str.10:                              ; @.str.10
	.asciz	"Unable to register device (%d)\n"

	.no_dead_strip	_st_rc_probe
.subsections_via_symbols
