	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1k_irda_stop
_au1k_irda_stop:                        ## @au1k_irda_stop
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_IR_CONFIG_2@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_read_ir_reg
	andl	$-257, %eax                     ## imm = 0xFEFF
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_writel
	movq	_IR_CONFIG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_writel
	movq	_IR_INTERFACE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_irlap_close
	movq	$0, 8(%r14)
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	%r14, %rdi
	callq	_del_timer
	movq	_AU1000_IRDA_TX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	_AU1000_IRDA_RX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_CONFIG_2,4,2                ## @IR_CONFIG_2
	.comm	_IR_CONFIG_1,4,2                ## @IR_CONFIG_1
	.comm	_IR_INTERFACE_CONFIG,4,2        ## @IR_INTERFACE_CONFIG
	.comm	_AU1000_IRDA_TX_INT,4,2         ## @AU1000_IRDA_TX_INT
	.comm	_AU1000_IRDA_RX_INT,4,2         ## @AU1000_IRDA_RX_INT
	.no_dead_strip	_au1k_irda_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1k_irda_stop
_au1k_irda_stop:                        ; @au1k_irda_stop
	.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
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x21, _IR_CONFIG_2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IR_CONFIG_2@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_read_ir_reg
	and	w0, w0, #0xfffffeff
	ldr	w1, [x21]
	bl	_writel
Lloh2:
	adrp	x8, _IR_CONFIG_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IR_CONFIG_1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_writel
Lloh5:
	adrp	x8, _IR_INTERFACE_CONFIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IR_INTERFACE_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_writel
	bl	_au_sync
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_irlap_close
	str	xzr, [x20, #8]
LBB0_2:
	mov	x0, x19
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_del_timer
Lloh8:
	adrp	x8, _AU1000_IRDA_TX_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AU1000_IRDA_TX_INT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
Lloh11:
	adrp	x8, _AU1000_IRDA_RX_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AU1000_IRDA_RX_INT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_CONFIG_2,4,2                ; @IR_CONFIG_2
	.comm	_IR_CONFIG_1,4,2                ; @IR_CONFIG_1
	.comm	_IR_INTERFACE_CONFIG,4,2        ; @IR_INTERFACE_CONFIG
	.comm	_AU1000_IRDA_TX_INT,4,2         ; @AU1000_IRDA_TX_INT
	.comm	_AU1000_IRDA_RX_INT,4,2         ; @AU1000_IRDA_RX_INT
	.no_dead_strip	_au1k_irda_stop
.subsections_via_symbols
