	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lirc_cdev_add
_lirc_cdev_add:                         ## @lirc_cdev_add
	.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, %r15
	movq	_cdevs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rdi), %rbx
	movq	16(%rdi), %rsi
	leaq	(%r12,%rbx,8), %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_cdev_init
	leaq	8(%r15), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_lirc_dev_fops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 4(%r12,%rbx,8)
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_kobject_set_name
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_lirc_base_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_MKDEV
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_cdev_add
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kobject_put
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cdevs,8,3                      ## @cdevs
	.comm	_lirc_dev_fops,4,2              ## @lirc_dev_fops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lirc%d"

	.comm	_lirc_base_dev,4,2              ## @lirc_base_dev
	.no_dead_strip	_lirc_cdev_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lirc_cdev_add
_lirc_cdev_add:                         ; @lirc_cdev_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _cdevs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cdevs@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x22, [x0]
	add	x19, x21, x22, lsl #3
	ldr	x1, [x0, #16]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cdev_init
	add	x8, x20, #8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x1, _lirc_dev_fops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _lirc_dev_fops@GOTPAGEOFF]
	mov	x0, x19
	bl	_cdev_init
Lloh5:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	add	x9, x21, x22, lsl #3
	str	w8, [x9, #4]
	ldr	x2, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_kobject_set_name
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _lirc_base_dev@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lirc_base_dev@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_MAJOR
	ldr	x1, [x20]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_cdev_add
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_kobject_put
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cdevs,8,3                      ; @cdevs
	.comm	_lirc_dev_fops,4,2              ; @lirc_dev_fops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lirc%d"

	.comm	_lirc_base_dev,4,2              ; @lirc_base_dev
	.no_dead_strip	_lirc_cdev_add
.subsections_via_symbols
