	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_create_modify_header ## -- Begin function mlx5dr_action_create_modify_header
	.p2align	4, 0x90
_mlx5dr_action_create_modify_header:    ## @mlx5dr_action_create_modify_header
	.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
	movq	%rdx, %r12
	movq	%rdi, %r15
	callq	_refcount_inc
	movq	_DR_MODIFY_ACTION_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	je	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5dr_dbg
	jmp	LBB0_8
LBB0_1:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_5:
	movq	_DR_ACTION_TYP_MODIFY_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dr_action_create_generic
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%r15, (%rax)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_dr_action_create_modify_action
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5dr_dbg
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movq	%r15, %rdi
	callq	_refcount_dec
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DR_MODIFY_ACTION_SIZE,8,3      ## @DR_MODIFY_ACTION_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid modify actions size provided\n"

	.comm	_DR_ACTION_TYP_MODIFY_HDR,4,2   ## @DR_ACTION_TYP_MODIFY_HDR
L_.str.1:                               ## @.str.1
	.asciz	"Failed creating modify header action %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_create_modify_header ; -- Begin function mlx5dr_action_create_modify_header
	.p2align	2
_mlx5dr_action_create_modify_header:    ; @mlx5dr_action_create_modify_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	bl	_refcount_inc
Lloh0:
	adrp	x8, _DR_MODIFY_ACTION_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DR_MODIFY_ACTION_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	udiv	x9, x22, x8
	msub	x8, x9, x8, x22
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _DR_ACTION_TYP_MODIFY_HDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DR_ACTION_TYP_MODIFY_HDR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_dr_action_create_generic
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	str	x19, [x0]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_dr_action_create_modify_action
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.4:
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
	mov	x0, x20
	bl	_kfree
LBB0_5:
	mov	x0, x19
	bl	_refcount_dec
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DR_MODIFY_ACTION_SIZE,8,3      ; @DR_MODIFY_ACTION_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid modify actions size provided\n"

	.comm	_DR_ACTION_TYP_MODIFY_HDR,4,2   ; @DR_ACTION_TYP_MODIFY_HDR
l_.str.1:                               ; @.str.1
	.asciz	"Failed creating modify header action %d\n"

.subsections_via_symbols
