	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa1100_irda_remove
_sa1100_irda_remove:                    ## @sa1100_irda_remove
	.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
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_unregister_netdev
	movl	4(%r14), %edi
	callq	_kfree
	movl	(%r14), %edi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_free_netdev
LBB0_2:
	movq	_Ser2HSCR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___PREG
	movl	%eax, %edi
	movl	$4, %esi
	callq	_release_mem_region
	movq	_Ser2HSCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___PREG
	movl	%eax, %edi
	movl	$28, %esi
	callq	_release_mem_region
	movq	_Ser2UTCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___PREG
	movl	%eax, %edi
	movl	$36, %esi
	callq	_release_mem_region
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Ser2HSCR2,4,2                  ## @Ser2HSCR2
	.comm	_Ser2HSCR0,4,2                  ## @Ser2HSCR0
	.comm	_Ser2UTCR0,4,2                  ## @Ser2UTCR0
	.no_dead_strip	_sa1100_irda_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa1100_irda_remove
_sa1100_irda_remove:                    ; @sa1100_irda_remove
	.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
	bl	_platform_get_drvdata
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x20, #4]
	bl	_kfree
	ldr	w0, [x20]
	bl	_kfree
	mov	x0, x19
	bl	_free_netdev
LBB0_2:
Lloh0:
	adrp	x8, _Ser2HSCR2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Ser2HSCR2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___PREG
	mov	w1, #4
	bl	_release_mem_region
Lloh3:
	adrp	x8, _Ser2HSCR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Ser2HSCR0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___PREG
	mov	w1, #28
	bl	_release_mem_region
Lloh6:
	adrp	x8, _Ser2UTCR0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Ser2UTCR0@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	___PREG
	mov	w1, #36
	bl	_release_mem_region
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Ser2HSCR2,4,2                  ; @Ser2HSCR2
	.comm	_Ser2HSCR0,4,2                  ; @Ser2HSCR0
	.comm	_Ser2UTCR0,4,2                  ; @Ser2UTCR0
	.no_dead_strip	_sa1100_irda_remove
.subsections_via_symbols
