	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_lirc_register
_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r12
	movl	(%r15), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r15
	movq	_LIRCBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_lirc_buffer_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_18:
	movq	%r15, %rdi
	callq	_kfree
LBB0_19:
	movq	%r12, %rdi
	callq	_kfree
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_LIRC_CAN_REC_MODE2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 80(%r14)
	je	LBB0_10
## %bb.4:
	movq	_LIRC_CAN_SEND_PULSE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	64(%r14), %rcx
	movq	72(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_LIRC_CAN_SET_TRANSMITTER_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_6:
	orq	%rdx, %rax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_LIRC_CAN_SET_SEND_CARRIER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_8:
	orq	%rcx, %rax
	cmpq	$0, 56(%r14)
	je	LBB0_10
## %bb.9:
	movq	_LIRC_CAN_SET_SEND_DUTY_CYCLE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
LBB0_10:
	movq	48(%r14), %rcx
	movq	_LIRC_CAN_SET_REC_CARRIER@GOTPCREL(%rip), %rdx
	movq	_LIRC_CAN_SET_REC_CARRIER_RANGE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	orq	(%rdx), %rbx
	testq	%rcx, %rcx
	cmoveq	%rcx, %rbx
	movq	40(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	_LIRC_CAN_USE_WIDEBAND_RECEIVER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_12:
	orq	%rax, %rbx
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_LIRC_CAN_MEASURE_CARRIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	orq	%rax, %rcx
	orq	%rcx, %rbx
	movq	(%r14), %rcx
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_LIRC_CAN_SET_REC_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_16:
	orq	%rax, %rbx
	movl	72(%r12), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	$-1, (%r12)
	movq	%rbx, 8(%r12)
	movq	8(%r14), %rax
	movq	%rax, 64(%r12)
	movq	%r15, 56(%r12)
	movq	_ir_lirc_open@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r12)
	movq	_ir_lirc_close@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movl	$32, 16(%r12)
	movq	_lirc_fops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	leaq	16(%r14), %rax
	movq	%rax, 24(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	%r12, %rdi
	callq	_lirc_register_driver
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_17
## %bb.21:
	movq	8(%r14), %rax
	movq	%r12, 8(%rax)
	movq	%r14, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_LIRCBUF_SIZE,4,2               ## @LIRCBUF_SIZE
	.comm	_LIRC_CAN_REC_MODE2,8,3         ## @LIRC_CAN_REC_MODE2
	.comm	_LIRC_CAN_SEND_PULSE,8,3        ## @LIRC_CAN_SEND_PULSE
	.comm	_LIRC_CAN_SET_TRANSMITTER_MASK,8,3 ## @LIRC_CAN_SET_TRANSMITTER_MASK
	.comm	_LIRC_CAN_SET_SEND_CARRIER,8,3  ## @LIRC_CAN_SET_SEND_CARRIER
	.comm	_LIRC_CAN_SET_SEND_DUTY_CYCLE,8,3 ## @LIRC_CAN_SET_SEND_DUTY_CYCLE
	.comm	_LIRC_CAN_SET_REC_CARRIER,8,3   ## @LIRC_CAN_SET_REC_CARRIER
	.comm	_LIRC_CAN_SET_REC_CARRIER_RANGE,8,3 ## @LIRC_CAN_SET_REC_CARRIER_RANGE
	.comm	_LIRC_CAN_USE_WIDEBAND_RECEIVER,8,3 ## @LIRC_CAN_USE_WIDEBAND_RECEIVER
	.comm	_LIRC_CAN_MEASURE_CARRIER,8,3   ## @LIRC_CAN_MEASURE_CARRIER
	.comm	_LIRC_CAN_SET_REC_TIMEOUT,8,3   ## @LIRC_CAN_SET_REC_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ir-lirc-codec (%s)"

	.comm	_ir_lirc_open,4,2               ## @ir_lirc_open
	.comm	_ir_lirc_close,4,2              ## @ir_lirc_close
	.comm	_lirc_fops,4,2                  ## @lirc_fops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ir_lirc_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_lirc_register
_ir_lirc_register:                      ; @ir_lirc_register
	.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, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w1, [x21]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x8, _LIRCBUF_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIRCBUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_lirc_buffer_init
	mov	x22, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_kfree
LBB0_4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
Lloh8:
	adrp	x8, _LIRC_CAN_REC_MODE2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIRC_CAN_REC_MODE2@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x20, #80]
	cbz	x9, LBB0_9
; %bb.7:
Lloh11:
	adrp	x9, _LIRC_CAN_SEND_PULSE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LIRC_CAN_SEND_PULSE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	x9, [x20, #72]
Lloh14:
	adrp	x10, _LIRC_CAN_SET_TRANSMITTER_MASK@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LIRC_CAN_SET_TRANSMITTER_MASK@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, xzr, x10, eq
	orr	x8, x8, x9
Lloh17:
	adrp	x9, _LIRC_CAN_SET_SEND_CARRIER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LIRC_CAN_SET_SEND_CARRIER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldp	x11, x10, [x20, #56]
	cmp	x10, #0
	csel	x9, xzr, x9, eq
	orr	x8, x8, x9
	cbz	x11, LBB0_9
; %bb.8:
Lloh20:
	adrp	x9, _LIRC_CAN_SET_SEND_DUTY_CYCLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LIRC_CAN_SET_SEND_DUTY_CYCLE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	orr	x8, x9, x8
LBB0_9:
Lloh23:
	adrp	x9, _LIRC_CAN_SET_REC_CARRIER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _LIRC_CAN_SET_REC_CARRIER@GOTPAGEOFF]
Lloh25:
	adrp	x10, _LIRC_CAN_SET_REC_CARRIER_RANGE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _LIRC_CAN_SET_REC_CARRIER_RANGE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
Lloh28:
	ldr	x10, [x10]
	orr	x9, x10, x9
	ldp	x11, x10, [x20, #40]
	cmp	x10, #0
	csel	x9, xzr, x9, eq
	orr	x8, x9, x8
Lloh29:
	adrp	x9, _LIRC_CAN_USE_WIDEBAND_RECEIVER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LIRC_CAN_USE_WIDEBAND_RECEIVER@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x11, #0
	csel	x9, xzr, x9, eq
	orr	x8, x8, x9
Lloh32:
	adrp	x9, _LIRC_CAN_MEASURE_CARRIER@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LIRC_CAN_MEASURE_CARRIER@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	ldp	x11, x10, [x20, #24]
	cmp	x10, #0
	csel	x9, xzr, x9, eq
	orr	x8, x8, x9
Lloh35:
	adrp	x9, _LIRC_CAN_SET_REC_TIMEOUT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _LIRC_CAN_SET_REC_TIMEOUT@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x11, #0
	csel	x9, xzr, x9, eq
	orr	x22, x8, x9
	ldr	w0, [x19, #72]
	ldr	x3, [x20]
Lloh38:
	adrp	x2, l_.str@PAGE
Lloh39:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	w8, #-1
	str	w8, [x19]
	str	x22, [x19, #8]
	ldr	x8, [x20, #8]
	stp	x21, x8, [x19, #56]
Lloh40:
	adrp	x8, _ir_lirc_open@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ir_lirc_open@GOTPAGEOFF]
Lloh42:
	adrp	x9, _ir_lirc_close@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ir_lirc_close@GOTPAGEOFF]
	stp	x9, x8, [x19, #40]
	mov	w8, #32
Lloh44:
	adrp	x9, _lirc_fops@GOTPAGE
Lloh45:
	ldr	x9, [x9, _lirc_fops@GOTPAGEOFF]
	add	x10, x20, #16
	stp	x10, x9, [x19, #24]
Lloh46:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
	mov	x0, x19
	bl	_lirc_register_driver
	str	w0, [x19]
	tbnz	w0, #31, LBB0_11
; %bb.10:
	mov	w22, #0
	ldr	x8, [x20, #8]
	stp	x20, x19, [x8]
	b	LBB0_5
LBB0_11:
Lloh49:
	adrp	x8, _ENODEV@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_LIRCBUF_SIZE,4,2               ; @LIRCBUF_SIZE
	.comm	_LIRC_CAN_REC_MODE2,8,3         ; @LIRC_CAN_REC_MODE2
	.comm	_LIRC_CAN_SEND_PULSE,8,3        ; @LIRC_CAN_SEND_PULSE
	.comm	_LIRC_CAN_SET_TRANSMITTER_MASK,8,3 ; @LIRC_CAN_SET_TRANSMITTER_MASK
	.comm	_LIRC_CAN_SET_SEND_CARRIER,8,3  ; @LIRC_CAN_SET_SEND_CARRIER
	.comm	_LIRC_CAN_SET_SEND_DUTY_CYCLE,8,3 ; @LIRC_CAN_SET_SEND_DUTY_CYCLE
	.comm	_LIRC_CAN_SET_REC_CARRIER,8,3   ; @LIRC_CAN_SET_REC_CARRIER
	.comm	_LIRC_CAN_SET_REC_CARRIER_RANGE,8,3 ; @LIRC_CAN_SET_REC_CARRIER_RANGE
	.comm	_LIRC_CAN_USE_WIDEBAND_RECEIVER,8,3 ; @LIRC_CAN_USE_WIDEBAND_RECEIVER
	.comm	_LIRC_CAN_MEASURE_CARRIER,8,3   ; @LIRC_CAN_MEASURE_CARRIER
	.comm	_LIRC_CAN_SET_REC_TIMEOUT,8,3   ; @LIRC_CAN_SET_REC_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ir-lirc-codec (%s)"

	.comm	_ir_lirc_open,4,2               ; @ir_lirc_open
	.comm	_ir_lirc_close,4,2              ; @ir_lirc_close
	.comm	_lirc_fops,4,2                  ; @lirc_fops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ir_lirc_register
.subsections_via_symbols
