	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_tx_machine
_ad_tx_machine:                         ## @ad_tx_machine
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	decl	%eax
	movl	%eax, (%rdi)
	jne	LBB0_7
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_6
## %bb.3:
	movq	_AD_PORT_LACP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	___update_lacpdu_from_port
	movq	%rbx, %rdi
	callq	_ad_lacpdu_send
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_slave_dbg
	movl	$0, 4(%rbx)
LBB0_6:
	movq	_ad_ticks_per_sec@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AD_MAX_TX_IN_SECOND@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_PORT_LACP_ENABLED,4,2       ## @AD_PORT_LACP_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sent LACPDU on port %d\n"

	.comm	_ad_ticks_per_sec,4,2           ## @ad_ticks_per_sec
	.comm	_AD_MAX_TX_IN_SECOND,4,2        ## @AD_MAX_TX_IN_SECOND
	.no_dead_strip	_ad_tx_machine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_tx_machine
_ad_tx_machine:                         ; @ad_tx_machine
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	subs	w8, w8, #1
	str	w8, [x0]
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _AD_PORT_LACP_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD_PORT_LACP_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	___update_lacpdu_from_port
	mov	x0, x19
	bl	_ad_lacpdu_send
	tbnz	x0, #63, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldr	w0, [x9]
	ldr	w1, [x8]
	ldr	w3, [x19, #12]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_slave_dbg
	str	wzr, [x19, #4]
LBB0_6:
Lloh5:
	adrp	x8, _ad_ticks_per_sec@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ad_ticks_per_sec@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AD_MAX_TX_IN_SECOND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AD_MAX_TX_IN_SECOND@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_PORT_LACP_ENABLED,4,2       ; @AD_PORT_LACP_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sent LACPDU on port %d\n"

	.comm	_ad_ticks_per_sec,4,2           ; @ad_ticks_per_sec
	.comm	_AD_MAX_TX_IN_SECOND,4,2        ; @AD_MAX_TX_IN_SECOND
	.no_dead_strip	_ad_tx_machine
.subsections_via_symbols
