	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4_setapp
_cxgb4_setapp:                          ## @cxgb4_setapp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rsi, -32(%rbp)
	movq	%rcx, -24(%rbp)
	movl	%edx, -16(%rbp)
	movq	_DCB_APP_IDTYPE_ETHTYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	je	LBB0_3
## %bb.1:
	movq	_DCB_APP_IDTYPE_PORTNUM@GOTPCREL(%rip), %rdi
	cmpq	%rsi, (%rdi)
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	cmpq	%rsi, %rax
	movl	$3, %eax
	cmoveq	%rsi, %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	___cxgb4_setapp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dcb_setapp
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_APP_IDTYPE_ETHTYPE,8,3     ## @DCB_APP_IDTYPE_ETHTYPE
	.comm	_DCB_APP_IDTYPE_PORTNUM,8,3     ## @DCB_APP_IDTYPE_PORTNUM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cxgb4_setapp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4_setapp
_cxgb4_setapp:                          ; @cxgb4_setapp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	stp	x1, x3, [sp, #8]
	str	w2, [sp, #24]
Lloh0:
	adrp	x8, _DCB_APP_IDTYPE_ETHTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCB_APP_IDTYPE_ETHTYPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DCB_APP_IDTYPE_PORTNUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DCB_APP_IDTYPE_PORTNUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w9, #3
	cmp	x8, x1
	csel	x1, x1, x9, eq
	bl	___cxgb4_setapp
	cbnz	w0, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_dcb_setapp
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_APP_IDTYPE_ETHTYPE,8,3     ; @DCB_APP_IDTYPE_ETHTYPE
	.comm	_DCB_APP_IDTYPE_PORTNUM,8,3     ; @DCB_APP_IDTYPE_PORTNUM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cxgb4_setapp
.subsections_via_symbols
