	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_lirc_register               ## -- Begin function ir_lirc_register
	.p2align	4, 0x90
_ir_lirc_register:                      ## @ir_lirc_register
	.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, %rbx
	movq	_RC_DEV_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_lirc_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_ida_simple_get
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_device_initialize
	movq	_lirc_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	8(%rbx), %r15
	movq	%r15, 32(%rbx)
	movq	_lirc_release_device@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_lirc_base_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_MKDEV
	movl	%eax, 24(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_dev_set_name
	leaq	56(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%rbx), %rdi
	callq	_spin_lock_init
	leaq	48(%rbx), %r13
	movq	_lirc_fops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_cdev_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_cdev_device_add
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r12d
	movq	_lirc_ida@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_ida_simple_remove
	movl	%r12d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	callq	_get_device
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	cmpl	$129, %eax
	leaq	L_.str.2(%rip), %r9
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, %rsi
	cmoveq	%r9, %rsi
	cmpl	$128, %eax
	leaq	L_.str.1(%rip), %r8
	cmovneq	%rsi, %r8
	cmpq	$0, 16(%rbx)
	cmoveq	%rcx, %r9
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_dev_info
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lirc_ida,4,2                   ## @lirc_ida
	.comm	_RC_DEV_MAX,4,2                 ## @RC_DEV_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_lirc_class,4,2                 ## @lirc_class
	.comm	_lirc_release_device,4,2        ## @lirc_release_device
	.comm	_lirc_base_dev,4,2              ## @lirc_base_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lirc%d"

	.comm	_lirc_fops,4,2                  ## @lirc_fops
L_.str.1:                               ## @.str.1
	.asciz	"scancode"

L_.str.2:                               ## @.str.2
	.asciz	"raw IR"

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

L_.str.4:                               ## @.str.4
	.asciz	"lirc_dev: driver %s registered at minor = %d, %s receiver, %s transmitter"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ir_lirc_register               ; -- Begin function ir_lirc_register
	.p2align	2
_ir_lirc_register:                      ; @ir_lirc_register
	.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	x20, x0
Lloh0:
	adrp	x8, _RC_DEV_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_DEV_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x0, _lirc_ida@GOTPAGE
Lloh7:
	ldr	x0, [x0, _lirc_ida@GOTPAGEOFF]
	mov	w1, #0
	bl	_ida_simple_get
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x22, x20, #24
	mov	x0, x22
	bl	_device_initialize
Lloh8:
	adrp	x8, _lirc_class@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lirc_class@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	add	x21, x20, #8
Lloh11:
	adrp	x8, _lirc_release_device@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lirc_release_device@GOTPAGEOFF]
	str	x21, [x20, #32]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #28]
Lloh14:
	adrp	x8, _lirc_base_dev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lirc_base_dev@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_MAJOR
	mov	x1, x19
	bl	_MKDEV
	str	w0, [x20, #24]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_dev_set_name
	add	x0, x20, #56
	bl	_INIT_LIST_HEAD
	add	x0, x20, #52
	bl	_spin_lock_init
	add	x23, x20, #48
Lloh19:
	adrp	x1, _lirc_fops@GOTPAGE
Lloh20:
	ldr	x1, [x1, _lirc_fops@GOTPAGEOFF]
	mov	x0, x23
	bl	_cdev_init
	mov	x0, x23
	mov	x1, x22
	bl	_cdev_device_add
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh21:
	adrp	x0, _lirc_ida@GOTPAGE
Lloh22:
	ldr	x0, [x0, _lirc_ida@GOTPAGEOFF]
	mov	x1, x19
	bl	_ida_simple_remove
	mov	x19, x22
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_get_device
Lloh23:
	adrp	x8, l_.str.3@PAGE
Lloh24:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh25:
	adrp	x9, l_.str.2@PAGE
Lloh26:
	add	x9, x9, l_.str.2@PAGEOFF
	ldp	w10, w2, [x20]
	cmp	w10, #129
Lloh27:
	adrp	x11, l_.str.1@PAGE
Lloh28:
	add	x11, x11, l_.str.1@PAGEOFF
	csel	x12, x9, x8, eq
	cmp	w10, #128
	csel	x4, x11, x12, eq
	ldr	x10, [x20, #16]
	cmp	x10, #0
	csel	x5, x8, x9, eq
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_dev_info
	mov	w19, #0
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_lirc_ida,4,2                   ; @lirc_ida
	.comm	_RC_DEV_MAX,4,2                 ; @RC_DEV_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_lirc_class,4,2                 ; @lirc_class
	.comm	_lirc_release_device,4,2        ; @lirc_release_device
	.comm	_lirc_base_dev,4,2              ; @lirc_base_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lirc%d"

	.comm	_lirc_fops,4,2                  ; @lirc_fops
l_.str.1:                               ; @.str.1
	.asciz	"scancode"

l_.str.2:                               ; @.str.2
	.asciz	"raw IR"

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

l_.str.4:                               ; @.str.4
	.asciz	"lirc_dev: driver %s registered at minor = %d, %s receiver, %s transmitter"

.subsections_via_symbols
