	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isurf_auxcmd
_isurf_auxcmd:                          ## @isurf_auxcmd
	.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, %rbx
	movq	(%rsi), %rax
	movq	_ISDN_CMD_IOCTL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$9, 8(%rsi)
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_isar_auxcmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movq	_ISURF_ISAR_EA@GOTPCREL(%rip), %rax
	movq	_ISURF_ISAC_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ISURF_ARCOFI_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reset_isurf
	movq	%rbx, %rdi
	callq	_initisac
	movq	_ISAC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*8(%rbx)
	movq	_ISAC_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	callq	*8(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_isar_auxcmd                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_CMD_IOCTL,8,3             ## @ISDN_CMD_IOCTL
	.comm	_ISURF_ISAR_EA,4,2              ## @ISURF_ISAR_EA
	.comm	_ISURF_ISAC_RESET,4,2           ## @ISURF_ISAC_RESET
	.comm	_ISURF_ARCOFI_RESET,4,2         ## @ISURF_ARCOFI_RESET
	.comm	_ISAC_MASK,4,2                  ## @ISAC_MASK
	.comm	_ISAC_CMDR,4,2                  ## @ISAC_CMDR
	.no_dead_strip	_isurf_auxcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isurf_auxcmd
_isurf_auxcmd:                          ; @isurf_auxcmd
	.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	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ISDN_CMD_IOCTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISDN_CMD_IOCTL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x1, #8]
	cmp	w8, #9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_isar_auxcmd
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbnz	w20, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ISURF_ISAR_EA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISURF_ISAR_EA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ISURF_ISAC_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISURF_ISAC_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ISURF_ARCOFI_RESET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISURF_ARCOFI_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_reset_isurf
	mov	x0, x19
	bl	_initisac
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _ISAC_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISAC_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _ISAC_CMDR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ISAC_CMDR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #65
	blr	x8
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_isar_auxcmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_CMD_IOCTL,8,3             ; @ISDN_CMD_IOCTL
	.comm	_ISURF_ISAR_EA,4,2              ; @ISURF_ISAR_EA
	.comm	_ISURF_ISAC_RESET,4,2           ; @ISURF_ISAC_RESET
	.comm	_ISURF_ARCOFI_RESET,4,2         ; @ISURF_ARCOFI_RESET
	.comm	_ISAC_MASK,4,2                  ; @ISAC_MASK
	.comm	_ISAC_CMDR,4,2                  ; @ISAC_CMDR
	.no_dead_strip	_isurf_auxcmd
.subsections_via_symbols
