	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serial_ir_open
_serial_ir_open:                        ## @serial_ir_open
	.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
	xorl	%eax, %eax
	callq	_ktime_get
	movq	_serial_ir@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_hardware@GOTPCREL(%rip), %r14
	movq	_type@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_spin_lock_irqsave
	movq	_UART_LCR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_sinp
	movq	_UART_LCR_DLAB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_soutp
	movq	_UART_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_sinp
	movq	_UART_IER_MSI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_soutp
	movq	(%r15), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_serial_ir,4,2                  ## @serial_ir
	.comm	_hardware,8,3                   ## @hardware
	.comm	_type,8,3                       ## @type
	.comm	_UART_LCR,4,2                   ## @UART_LCR
	.comm	_UART_LCR_DLAB,4,2              ## @UART_LCR_DLAB
	.comm	_UART_IER,4,2                   ## @UART_IER
	.comm	_UART_IER_MSI,4,2               ## @UART_IER_MSI
	.no_dead_strip	_serial_ir_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serial_ir_open
_serial_ir_open:                        ; @serial_ir_open
	.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
	bl	_ktime_get
Lloh0:
	adrp	x8, _serial_ir@GOTPAGE
Lloh1:
	ldr	x8, [x8, _serial_ir@GOTPAGEOFF]
Lloh2:
	adrp	x20, _hardware@GOTPAGE
Lloh3:
	ldr	x20, [x20, _hardware@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
	ldr	x8, [x20]
Lloh5:
	adrp	x21, _type@GOTPAGE
Lloh6:
	ldr	x21, [x21, _type@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x8, x9, lsl #2
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x8, _UART_LCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UART_LCR@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_sinp
Lloh10:
	adrp	x8, _UART_LCR_DLAB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UART_LCR_DLAB@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	bl	_soutp
Lloh13:
	adrp	x8, _UART_IER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UART_IER@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_sinp
Lloh16:
	adrp	x8, _UART_IER_MSI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UART_IER_MSI@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_soutp
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x8, x9, lsl #2
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_serial_ir,4,2                  ; @serial_ir
	.comm	_hardware,8,3                   ; @hardware
	.comm	_type,8,3                       ; @type
	.comm	_UART_LCR,4,2                   ; @UART_LCR
	.comm	_UART_LCR_DLAB,4,2              ; @UART_LCR_DLAB
	.comm	_UART_IER,4,2                   ; @UART_IER
	.comm	_UART_IER_MSI,4,2               ; @UART_IER_MSI
	.no_dead_strip	_serial_ir_open
.subsections_via_symbols
