	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgbi_ppm_ddp_tag_update_sw_bits
_cxgbi_ppm_ddp_tag_update_sw_bits:      ## @cxgbi_ppm_ddp_tag_update_sw_bits
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %ebx
	movl	(%rdi), %ecx
	movl	%esi, %eax
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%ecx, %edx
	callq	_pr_info
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movl	%edx, %r15d
	movq	%rdi, %r12
	movl	%edx, %esi
	callq	_cxgbi_ppm_is_ddp_tag
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movb	4(%r12), %cl
	shll	%cl, %ebx
	andl	8(%r12), %r15d
	orl	%ebx, %r15d
	movl	%r15d, (%r14)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sw_bits 0x%x too large, avail bits %u.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cxgbi_ppm_ddp_tag_update_sw_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgbi_ppm_ddp_tag_update_sw_bits
_cxgbi_ppm_ddp_tag_update_sw_bits:      ; @cxgbi_ppm_ddp_tag_update_sw_bits
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	ldr	w2, [x0]
	asr	w8, w1, w2
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_info
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x19, x3
	mov	x22, x0
	mov	x1, x21
	bl	_cxgbi_ppm_is_ddp_tag
	cbz	w0, LBB0_2
; %bb.4:
	mov	w0, #0
	ldp	w8, w9, [x22, #4]
	lsl	w8, w20, w8
	and	w9, w9, w21
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sw_bits 0x%x too large, avail bits %u.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cxgbi_ppm_ddp_tag_update_sw_bits
.subsections_via_symbols
