	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_set_priv_flags
_mlx4_en_set_priv_flags:                ## @mlx4_en_set_priv_flags
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %r15
	movq	32(%rax), %rdi
	movq	_MLX4_EN_PRIV_FLAGS_BLUEFLAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ecx, %ecx
	testl	%r14d, %r9d
	setne	%bl
	movl	(%r15), %r12d
	testl	%r9d, %r12d
	sete	%al
	movq	_MLX4_EN_PRIV_FLAGS_PHV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	xorl	%edx, %edx
	testl	%r14d, %esi
	setne	%r8b
	xorb	%bl, %al
	jne	LBB0_23
## %bb.1:
	movb	%r8b, -42(%rbp)                 ## 1-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r9d
	je	LBB0_15
## %bb.2:
	movq	_MLX4_EN_NUM_TX_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	testl	%r11d, %r11d
	jle	LBB0_14
## %bb.3:
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	8(%r15), %r10
	movl	$1, %edi
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r11, %r14
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movl	(%r10,%r14,4), %edx
	testl	%edx, %edx
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r15), %rsi
	movq	(%rsi,%r14,8), %rbx
	leaq	-1(%rdx), %r8
	movl	%edx, %esi
	andl	$3, %esi
	cmpq	$3, %r8
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	andl	$-4, %edx
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r8,8), %r12
	movq	8(%rbx,%r8,8), %r13
	andl	(%r12), %edi
	andl	(%r13), %edi
	movq	16(%rbx,%r8,8), %rax
	andl	(%rax), %edi
	movq	24(%rbx,%r8,8), %rax
	andl	(%rax), %edi
	addq	$4, %r8
	cmpq	%r8, %rdx
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r8,8), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rbx,8), %rax
	andl	(%rax), %edi
	incq	%rbx
	cmpq	%rbx, %rsi
	jne	LBB0_11
	jmp	LBB0_12
LBB0_15:
	movl	%r9d, %eax
	notl	%eax
	andl	%r12d, %eax
	jmp	LBB0_16
LBB0_13:
	testl	%edi, %edi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movb	-41(%rbp), %bl                  ## 1-byte Reload
	je	LBB0_30
LBB0_14:
	movl	%r12d, %eax
	orl	%r9d, %eax
LBB0_16:
	movl	%eax, (%r15)
	movq	_MLX4_EN_NUM_TX_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_22
## %bb.17:
	movb	%bl, %cl
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rsi
	cmpq	%r8, %rsi
	je	LBB0_22
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	cmpl	$0, (%rdx,%rsi,4)
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	24(%r15), %rdi
	movq	(%rdi,%rsi,8), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rbx,8), %rax
	movl	%ecx, 4(%rax)
	incq	%rbx
	movslq	(%rdx,%rsi,4), %rax
	cmpq	%rax, %rbx
	jl	LBB0_20
	jmp	LBB0_21
LBB0_22:
	testl	%r14d, %r9d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movb	-42(%rbp), %r8b                 ## 1-byte Reload
LBB0_23:
	testl	%r12d, %esi
	sete	%cl
	testl	%r14d, %esi
	setne	%bl
	xorl	%eax, %eax
	xorb	%cl, %bl
	jne	LBB0_29
## %bb.24:
	movl	%esi, %ebx
	movb	%r8b, %dl
	movl	(%rdi), %edi
	movl	16(%r15), %esi
	callq	_set_phv_bit
	testl	%eax, %eax
	jne	LBB0_29
## %bb.25:
	movq	_MLX4_EN_PRIV_FLAGS_PHV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %ebx
	je	LBB0_27
## %bb.26:
	orl	(%r15), %eax
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_28
LBB0_30:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_29
LBB0_27:
	notl	%eax
	andl	(%r15), %eax
	leaq	L_.str.3(%rip), %rdx
LBB0_28:
	movl	%eax, (%r15)
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
	xorl	%eax, %eax
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_PRIV_FLAGS_BLUEFLAME,4,2 ## @MLX4_EN_PRIV_FLAGS_BLUEFLAME
	.comm	_MLX4_EN_PRIV_FLAGS_PHV,4,2     ## @MLX4_EN_PRIV_FLAGS_PHV
	.comm	_MLX4_EN_NUM_TX_TYPES,4,2       ## @MLX4_EN_NUM_TX_TYPES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BlueFlame is not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"BlueFlame %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Enabled"

L_.str.3:                               ## @.str.3
	.asciz	"Disabled"

L_.str.4:                               ## @.str.4
	.asciz	"PHV bit %s\n"

	.no_dead_strip	_mlx4_en_set_priv_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_set_priv_flags
_mlx4_en_set_priv_flags:                ; @mlx4_en_set_priv_flags
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x0, #32]
Lloh0:
	adrp	x8, _MLX4_EN_PRIV_FLAGS_BLUEFLAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_EN_PRIV_FLAGS_BLUEFLAME@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ands	w8, w10, w20
	cset	w9, ne
	ldr	w24, [x0]
	tst	w24, w10
	cset	w11, eq
Lloh3:
	adrp	x21, _MLX4_EN_PRIV_FLAGS_PHV@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MLX4_EN_PRIV_FLAGS_PHV@GOTPAGEOFF]
	ldr	w25, [x21]
	ands	w22, w25, w20
	cset	w20, ne
	eor	w11, w9, w11
	tbnz	w11, #0, LBB0_23
; %bb.1:
Lloh5:
	adrp	x11, _MLX4_EN_NUM_TX_TYPES@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MLX4_EN_NUM_TX_TYPES@GOTPAGEOFF]
	cbz	w8, LBB0_13
; %bb.2:
	ldr	w12, [x11]
	cmp	w12, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x13, #0
	ldr	x15, [x19, #8]
	mov	w14, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x13, #1
	cmp	x13, x12
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w16, [x15, x13, lsl #2]
	cmp	w16, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x17, [x19, #24]
	ldr	x17, [x17, x13, lsl #3]
	cmp	w16, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	x0, x16, #0xfffffffe
	add	x2, x17, #8
	mov	w1, #-1
	mov	x3, x0
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x4, x5, [x2, #-8]
	ldr	w4, [x4]
	ldr	w5, [x5]
	and	w14, w4, w14
	and	w1, w5, w1
	add	x2, x2, #16
	subs	x3, x3, #2
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	and	w14, w1, w14
	cmp	x0, x16
	b.eq	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x17, x17, x0, lsl #3
	sub	x16, x16, x0
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x17], #8
	ldr	w0, [x0]
	and	w14, w0, w14
	subs	x16, x16, #1
	b.ne	LBB0_12
	b	LBB0_4
LBB0_13:
	bic	w10, w24, w10
	b	LBB0_16
LBB0_14:
	cbz	w14, LBB0_27
LBB0_15:
	orr	w10, w24, w10
LBB0_16:
	str	w10, [x19]
	ldr	w10, [x11]
	cmp	w10, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x11, #0
	ldr	x12, [x19, #8]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x11, x11, #1
	cmp	x11, x10
	b.eq	LBB0_22
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	w13, [x12, x11, lsl #2]
	cmp	w13, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x13, #0
	ldr	x14, [x19, #24]
	ldr	x14, [x14, x11, lsl #3]
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14, x13, lsl #3]
	str	w9, [x15, #4]
	add	x13, x13, #1
	ldrsw	x15, [x12, x11, lsl #2]
	cmp	x13, x15
	b.lt	LBB0_21
	b	LBB0_18
LBB0_22:
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh9:
	adrp	x10, l_.str.2@PAGE
Lloh10:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, ne
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_en_info
LBB0_23:
	and	w8, w25, w24
	cmp	w8, #0
	cset	w8, eq
	cmp	w22, #0
	cset	w9, ne
	eor	w8, w8, w9
	tbnz	w8, #0, LBB0_30
; %bb.24:
	ldr	w0, [x23]
	ldr	w1, [x19, #16]
	mov	x2, x20
	bl	_set_phv_bit
	cbnz	w0, LBB0_31
; %bb.25:
	ldr	w8, [x21]
	cbz	w22, LBB0_28
; %bb.26:
	ldr	w9, [x19]
	orr	w8, w9, w8
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_29
LBB0_27:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_en_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_31
LBB0_28:
	ldr	w9, [x19]
	bic	w8, w9, w8
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_29:
	str	w8, [x19]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_en_info
LBB0_30:
	mov	w0, #0
LBB0_31:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_PRIV_FLAGS_BLUEFLAME,4,2 ; @MLX4_EN_PRIV_FLAGS_BLUEFLAME
	.comm	_MLX4_EN_PRIV_FLAGS_PHV,4,2     ; @MLX4_EN_PRIV_FLAGS_PHV
	.comm	_MLX4_EN_NUM_TX_TYPES,4,2       ; @MLX4_EN_NUM_TX_TYPES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BlueFlame is not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"BlueFlame %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Enabled"

l_.str.3:                               ; @.str.3
	.asciz	"Disabled"

l_.str.4:                               ; @.str.4
	.asciz	"PHV bit %s\n"

	.no_dead_strip	_mlx4_en_set_priv_flags
.subsections_via_symbols
