	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa1100_irda_stop
_sa1100_irda_stop:                      ## @sa1100_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_disable_irq
	movq	%rbx, %rdi
	callq	_sa1100_irda_shutdown
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %esi
	movl	36(%rbx), %edi
	movq	_HPSIR_MAX_RXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	24(%rbx), %rdi
	callq	_dev_kfree_skb
	movq	$0, 24(%rbx)
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_irlap_close
	movq	$0, 16(%rbx)
LBB0_4:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	$0, 8(%rbx)
	movl	4(%rbx), %edi
	callq	_sa1100_free_dma
	movl	(%rbx), %edi
	callq	_sa1100_free_dma
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sa1100_set_power
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPSIR_MAX_RXLEN,4,2            ## @HPSIR_MAX_RXLEN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_sa1100_irda_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa1100_irda_stop
_sa1100_irda_stop:                      ; @sa1100_irda_stop
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x20]
	bl	_disable_irq
	mov	x0, x19
	bl	_sa1100_irda_shutdown
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #32]
Lloh0:
	adrp	x8, _HPSIR_MAX_RXLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPSIR_MAX_RXLEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	x0, [x19, #24]
	bl	_dev_kfree_skb
	str	xzr, [x19, #24]
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_irlap_close
	str	xzr, [x19, #16]
LBB0_4:
	mov	x0, x20
	bl	_netif_stop_queue
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
	bl	_sa1100_free_dma
	ldr	w0, [x19]
	bl	_sa1100_free_dma
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x19
	mov	w1, #0
	bl	_sa1100_set_power
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPSIR_MAX_RXLEN,4,2            ; @HPSIR_MAX_RXLEN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_sa1100_irda_stop
.subsections_via_symbols
