	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fintek_probe
_fintek_probe:                          ## @fintek_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, %r15
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r13
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pnp_port_valid
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pnp_irq_valid
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pnp_port_start
	movl	%eax, 4(%r13)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pnp_irq
	movl	%eax, 8(%r13)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pnp_port_len
	movl	%eax, (%r13)
	movq	_CR_INDEX_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_CR_DATA_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	%r13, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_pnp_set_drvdata
	movq	%r15, 32(%r13)
	movq	%r13, %rdi
	callq	_fintek_hw_detect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	%r13, %rdi
	callq	_fintek_config_mode_enable
	movq	%r13, %rdi
	callq	_fintek_cir_ldev_init
	movq	%r13, %rdi
	callq	_fintek_config_mode_disable
	movq	%r13, %rdi
	callq	_fintek_cir_regs_init
	movq	%r13, 72(%r14)
	movq	_RC_PROTO_BIT_ALL_IR_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r14)
	movq	_fintek_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_fintek_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_FINTEK_DESCRIPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_VENDOR_ID_FINTEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	28(%r13), %eax
	movl	%eax, 44(%r14)
	movl	24(%r13), %eax
	movl	%eax, 40(%r14)
	movq	%r15, 32(%r14)
	movq	_FINTEK_DRIVER_NAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, 28(%r14)
	movq	_RC_MAP_RC6_MCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_US_TO_NS
	movq	%rax, 16(%r14)
	movq	_CIR_SAMPLE_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_US_TO_NS
	movq	%rax, 8(%r14)
	movq	%r14, 16(%r13)
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	(%rbx), %edx
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	8(%r13), %edi
	movq	_fintek_cir_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%r13, %r8
	callq	_request_irq
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	%r14, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movl	%eax, %r12d
	movl	8(%r13), %edi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_14:
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_release_region
LBB0_15:
	movl	%r12d, %ebx
	jmp	LBB0_16
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_16:
	movq	%r14, %rdi
	callq	_rc_free_device
	movq	%r13, %rdi
	callq	_kfree
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	_KERN_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fit_pr
	movq	_debug@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.12:
	movq	%r13, %rdi
	callq	_cir_dump_regs
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR PNP Port not valid!\n"

L_.str.1:                               ## @.str.1
	.asciz	"IR PNP IRQ not valid!\n"

	.comm	_CR_INDEX_PORT,4,2              ## @CR_INDEX_PORT
	.comm	_CR_DATA_PORT,4,2               ## @CR_DATA_PORT
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ## @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_fintek_open,4,2                ## @fintek_open
	.comm	_fintek_close,4,2               ## @fintek_close
	.comm	_FINTEK_DESCRIPTION,4,2         ## @FINTEK_DESCRIPTION
L_.str.2:                               ## @.str.2
	.asciz	"fintek/cir0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_VENDOR_ID_FINTEK,4,2           ## @VENDOR_ID_FINTEK
	.comm	_FINTEK_DRIVER_NAME,4,2         ## @FINTEK_DRIVER_NAME
	.comm	_RC_MAP_RC6_MCE,4,2             ## @RC_MAP_RC6_MCE
	.comm	_CIR_SAMPLE_PERIOD,4,2          ## @CIR_SAMPLE_PERIOD
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_fintek_cir_isr,4,2             ## @fintek_cir_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_KERN_NOTICE,4,2                ## @KERN_NOTICE
L_.str.3:                               ## @.str.3
	.asciz	"driver has been successfully loaded\n"

	.comm	_debug,8,3                      ## @debug
	.no_dead_strip	_fintek_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fintek_probe
_fintek_probe:                          ; @fintek_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.2:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x21
	mov	w1, #0
	bl	_pnp_port_valid
	cbz	w0, LBB0_10
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_pnp_irq_valid
	cbz	w0, LBB0_11
; %bb.4:
	mov	x0, x21
	mov	w1, #0
	bl	_pnp_port_start
	str	w0, [x19, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_pnp_irq
	str	w0, [x19, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_pnp_port_len
	str	w0, [x19]
Lloh12:
	adrp	x8, _CR_INDEX_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CR_INDEX_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CR_DATA_PORT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CR_DATA_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
	add	x0, x19, #40
	bl	_spin_lock_init
	mov	x0, x21
	mov	x1, x19
	bl	_pnp_set_drvdata
	str	x21, [x19, #32]
	mov	x0, x19
	bl	_fintek_hw_detect
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x0, x19
	bl	_fintek_config_mode_enable
	mov	x0, x19
	bl	_fintek_cir_ldev_init
	mov	x0, x19
	bl	_fintek_config_mode_disable
	mov	x0, x19
	bl	_fintek_cir_regs_init
	str	x19, [x20, #72]
Lloh18:
	adrp	x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _fintek_open@GOTPAGE
Lloh22:
	ldr	x9, [x9, _fintek_open@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #64]
Lloh24:
	adrp	x8, _fintek_close@GOTPAGE
Lloh25:
	ldr	x8, [x8, _fintek_close@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _FINTEK_DESCRIPTION@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FINTEK_DESCRIPTION@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #56]
Lloh30:
	adrp	x8, l_.str.2@PAGE
Lloh31:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh32:
	adrp	x9, _BUS_HOST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BUS_HOST@GOTPAGEOFF]
	str	x8, [x20]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _VENDOR_ID_FINTEK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VENDOR_ID_FINTEK@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #48]
	ldr	d0, [x19, #24]
	str	d0, [x20, #40]
	str	x21, [x20, #32]
Lloh38:
	adrp	x23, _FINTEK_DRIVER_NAME@GOTPAGE
Lloh39:
	ldr	x23, [x23, _FINTEK_DRIVER_NAME@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh40:
	adrp	x9, _RC_MAP_RC6_MCE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RC_MAP_RC6_MCE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	mov	w0, #1000
	bl	_US_TO_NS
	str	x0, [x20, #16]
Lloh43:
	adrp	x8, _CIR_SAMPLE_PERIOD@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CIR_SAMPLE_PERIOD@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_US_TO_NS
	str	x0, [x20, #8]
Lloh46:
	adrp	x8, _EBUSY@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	str	x20, [x19, #16]
Lloh48:
	ldr	w8, [x8]
	neg	w22, w8
	ldp	w1, w0, [x19]
	ldr	w2, [x23]
	bl	_request_region
	cbz	w0, LBB0_13
; %bb.6:
Lloh49:
	adrp	x8, _fintek_cir_isr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _fintek_cir_isr@GOTPAGEOFF]
	ldr	w0, [x19, #8]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	ldr	w3, [x23]
	mov	x4, x19
	bl	_request_irq
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_rc_register_device
	cbz	w0, LBB0_15
; %bb.8:
	mov	x22, x0
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
LBB0_9:
	ldp	w1, w0, [x19]
	bl	_release_region
	b	LBB0_13
LBB0_10:
Lloh55:
	adrp	x1, l_.str@PAGE
Lloh56:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh57:
	adrp	x1, l_.str.1@PAGE
Lloh58:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x21
	bl	_dev_err
LBB0_13:
	mov	x0, x20
	bl	_rc_free_device
	mov	x0, x19
	bl	_kfree
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x21
	mov	w1, #1
	bl	_device_init_wakeup
Lloh59:
	adrp	x8, _KERN_NOTICE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _KERN_NOTICE@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fit_pr
Lloh64:
	adrp	x8, _debug@GOTPAGE
Lloh65:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_cir_dump_regs
LBB0_17:
	mov	w22, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR PNP Port not valid!\n"

l_.str.1:                               ; @.str.1
	.asciz	"IR PNP IRQ not valid!\n"

	.comm	_CR_INDEX_PORT,4,2              ; @CR_INDEX_PORT
	.comm	_CR_DATA_PORT,4,2               ; @CR_DATA_PORT
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ; @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_fintek_open,4,2                ; @fintek_open
	.comm	_fintek_close,4,2               ; @fintek_close
	.comm	_FINTEK_DESCRIPTION,4,2         ; @FINTEK_DESCRIPTION
l_.str.2:                               ; @.str.2
	.asciz	"fintek/cir0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_VENDOR_ID_FINTEK,4,2           ; @VENDOR_ID_FINTEK
	.comm	_FINTEK_DRIVER_NAME,4,2         ; @FINTEK_DRIVER_NAME
	.comm	_RC_MAP_RC6_MCE,4,2             ; @RC_MAP_RC6_MCE
	.comm	_CIR_SAMPLE_PERIOD,4,2          ; @CIR_SAMPLE_PERIOD
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_fintek_cir_isr,4,2             ; @fintek_cir_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_KERN_NOTICE,4,2                ; @KERN_NOTICE
l_.str.3:                               ; @.str.3
	.asciz	"driver has been successfully loaded\n"

	.comm	_debug,8,3                      ; @debug
	.no_dead_strip	_fintek_probe
.subsections_via_symbols
