	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_lirc_poll
_ir_lirc_poll:                          ## @ir_lirc_poll
	.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	%rsi, %rdx
	movq	(%rdi), %r15
	movq	24(%r15), %rbx
	leaq	16(%r15), %rsi
	callq	_poll_wait
	cmpl	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_RC_DRIVER_IR_RAW_TX@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.3:
	movq	(%r15), %rax
	movq	_LIRC_MODE_SCANCODE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	leaq	12(%r15), %rdi
	callq	_kfifo_is_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
LBB0_6:
	movq	(%r15), %rax
	movq	_LIRC_MODE_MODE2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_kfifo_is_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movq	_EPOLLHUP@GOTPCREL(%rip), %rax
	movq	_EPOLLERR@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLHUP,4,2                   ## @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_RC_DRIVER_IR_RAW_TX,8,3        ## @RC_DRIVER_IR_RAW_TX
	.comm	_LIRC_MODE_SCANCODE,8,3         ## @LIRC_MODE_SCANCODE
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_LIRC_MODE_MODE2,8,3            ## @LIRC_MODE_MODE2
	.no_dead_strip	_ir_lirc_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_lirc_poll
_ir_lirc_poll:                          ; @ir_lirc_poll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	ldr	x20, [x0]
	ldr	x19, [x20, #24]
	add	x1, x20, #16
	bl	_poll_wait
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RC_DRIVER_IR_RAW_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_DRIVER_IR_RAW_TX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	w19, #0
	b	LBB0_11
LBB0_3:
Lloh3:
	adrp	x8, _EPOLLHUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPOLLHUP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EPOLLERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EPOLLERR@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w19, w9, w8
	b	LBB0_11
LBB0_5:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _LIRC_MODE_SCANCODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LIRC_MODE_SCANCODE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	add	x0, x20, #12
	bl	_kfifo_is_empty
	cbz	w0, LBB0_8
LBB0_7:
	mov	w19, #0
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w19, w9, w8
LBB0_9:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _LIRC_MODE_MODE2@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LIRC_MODE_MODE2@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	add	x0, x20, #8
	bl	_kfifo_is_empty
	cbz	w0, LBB0_12
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh20:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLHUP,4,2                   ; @EPOLLHUP
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_RC_DRIVER_IR_RAW_TX,8,3        ; @RC_DRIVER_IR_RAW_TX
	.comm	_LIRC_MODE_SCANCODE,8,3         ; @LIRC_MODE_SCANCODE
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_LIRC_MODE_MODE2,8,3            ; @LIRC_MODE_MODE2
	.no_dead_strip	_ir_lirc_poll
.subsections_via_symbols
