	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm1105_ir_init
_dm1105_ir_init:                        ## @dm1105_ir_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RC_DRIVER_SCANCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	12(%r14), %r15d
	movq	16(%r14), %rdi
	callq	_pci_name
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_RC_MAP_DM1105_NEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movl	12(%r14), %eax
	movl	%eax, 40(%rbx)
	movq	_BUS_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 16(%rbx)
	movq	16(%r14), %rax
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	leaq	16(%rax), %rdx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movq	8(%rax), %rcx
	leaq	4(%rax), %rdx
LBB0_5:
	movl	(%rdx), %edx
	movq	%rcx, 24(%rbx)
	movl	%edx, 20(%rbx)
	movq	%rax, 8(%rbx)
	leaq	8(%r14), %rdi
	movq	_dm1105_emit_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%rbx, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%rbx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rc_free_device
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RC_DRIVER_SCANCODE,4,2         ## @RC_DRIVER_SCANCODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci-%s/ir0"

	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.comm	_RC_MAP_DM1105_NEC,4,2          ## @RC_MAP_DM1105_NEC
L_.str.1:                               ## @.str.1
	.asciz	"DVB on-card IR receiver"

	.comm	_BUS_PCI,4,2                    ## @BUS_PCI
	.comm	_dm1105_emit_key,4,2            ## @dm1105_emit_key
	.no_dead_strip	_dm1105_ir_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm1105_ir_init
_dm1105_ir_init:                        ; @dm1105_ir_init
	.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	x19, x0
Lloh0:
	adrp	x8, _RC_DRIVER_SCANCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_DRIVER_SCANCODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w21, [x19, #12]
	ldr	x0, [x19, #16]
	bl	_pci_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_snprintf
Lloh5:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh8:
	adrp	x8, _RC_MAP_DM1105_NEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RC_MAP_DM1105_NEC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	str	x9, [x20]
	ldr	w9, [x19, #12]
	stp	w9, w8, [x20, #40]
Lloh13:
	adrp	x8, _BUS_PCI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BUS_PCI@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_4
; %bb.2:
	add	x10, x8, #16
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_4:
	ldr	x9, [x8, #8]
	add	x10, x8, #4
LBB0_5:
	ldr	w10, [x10]
	str	x9, [x20, #24]
	str	w10, [x20, #20]
	str	x8, [x20, #8]
	add	x0, x19, #8
Lloh19:
	adrp	x8, _dm1105_emit_key@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dm1105_emit_key@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x20
	bl	_rc_register_device
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w21, #0
	str	x20, [x19]
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	mov	x0, x20
	bl	_rc_free_device
LBB0_8:
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RC_DRIVER_SCANCODE,4,2         ; @RC_DRIVER_SCANCODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci-%s/ir0"

	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.comm	_RC_MAP_DM1105_NEC,4,2          ; @RC_MAP_DM1105_NEC
l_.str.1:                               ; @.str.1
	.asciz	"DVB on-card IR receiver"

	.comm	_BUS_PCI,4,2                    ; @BUS_PCI
	.comm	_dm1105_emit_key,4,2            ; @dm1105_emit_key
	.no_dead_strip	_dm1105_ir_init
.subsections_via_symbols
