	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setl2
_setl2:                                 ## @setl2
	.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	%rsi, %rbx
	movl	%edi, %r14d
	callq	_IS_VALID_CARD
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %r15
	shrq	$8, %r15
	movzbl	%bl, %edx
	movq	_sc_adapter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rcx
	movl	%r15d, (%rcx,%rdx,4)
	movl	(%rax), %esi
	incl	%edx
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_CEPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ceReqTypeCall@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ceReqClass0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ceReqCallGetFrameFormat@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	incb	%bl
	movslq	%r15d, %rax
	movzbl	%bl, %r9d
	movl	%r14d, %edi
	pushq	%rax
	pushq	$1
	callq	_sendmessage
	addq	$24, %rsp
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid param: %d is not a valid card id\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_sc_adapter,8,3                 ## @sc_adapter
L_.str.1:                               ## @.str.1
	.asciz	"%s: Sending GetFrameFormat for channel %d\n"

	.comm	_CEPID,4,2                      ## @CEPID
	.comm	_ceReqTypeCall,4,2              ## @ceReqTypeCall
	.comm	_ceReqClass0,4,2                ## @ceReqClass0
	.comm	_ceReqCallGetFrameFormat,4,2    ## @ceReqCallGetFrameFormat
	.no_dead_strip	_setl2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setl2
_setl2:                                 ; @setl2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_IS_VALID_CARD
	cbz	w0, LBB0_2
; %bb.1:
	lsr	x8, x20, #8
Lloh0:
	adrp	x9, _sc_adapter@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sc_adapter@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9, w19, sxtw #3]
	and	w10, w20, #0xff
	ldr	x11, [x9, #8]
	str	w8, [x11, w10, uxtw #2]
	ldr	w1, [x9]
	add	w8, w10, #1
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh5:
	adrp	x8, _CEPID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CEPID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _ceReqTypeCall@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ceReqTypeCall@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _ceReqClass0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ceReqClass0@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _ceReqCallGetFrameFormat@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ceReqCallGetFrameFormat@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	add	w8, w20, #1
	sbfx	x7, x20, #8, #32
	and	w5, w8, #0xff
	mov	x0, x19
	mov	w6, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_sendmessage
LBB0_2:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid param: %d is not a valid card id\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_sc_adapter,8,3                 ; @sc_adapter
l_.str.1:                               ; @.str.1
	.asciz	"%s: Sending GetFrameFormat for channel %d\n"

	.comm	_CEPID,4,2                      ; @CEPID
	.comm	_ceReqTypeCall,4,2              ; @ceReqTypeCall
	.comm	_ceReqClass0,4,2                ; @ceReqClass0
	.comm	_ceReqCallGetFrameFormat,4,2    ; @ceReqCallGetFrameFormat
	.no_dead_strip	_setl2
.subsections_via_symbols
